TIP: Click on subject to list as thread! ANSI
echo: os2
to: ROY J. TELLASON
from: JACK STEIN
date: 1998-04-19 08:50:00
subject: am I reading this right?

Roy J. Tellason wrote in a message to All:
 RJT> It appears,  from what I'm reading in this command
 RJT> reference,  that if I want to run a dos program from an OS/2
 RJT> command line,  all I need is something like 
 RJT>    command /c"doscommand"
 RJT> and that'll do it,  exiting back to the OS/2 command
 RJT> processor when it's done. At least that's what it looks like
 RJT> it means.  Is this right?  
Yes, but you don't have to, as OS/2 will recognize a DOS app, spawn a DOS 
session, and run it for you without doing that.  Keep in mind that the 
environment will not be what you expect, you probably won't have the command 
in your path, ansi.sys may not be loaded and such.  
The best ways to run DOS apps is from a DOS shell that has been configured 
they way you want it, with the boot-up file (auto-exec batch file you want) 
or from an ICON that has been configured for that app, or from a rexx script 
that runs the app from the objectid, which is the same as clicking on the 
icon for that object.  
You can also run a bat file from the OS/2 command line that sets up some of 
the environent you need for that DOS session.  I don't recommend you try to 
run your BBS from an OS/2 session.  Set up a DOS session with its own 
configuration and run it, and its apps from there.  If you want to kick off 
DOS apps from say, an OS/2 CRON scheduler, have the scheduler run a BAT file 
if you need special environments, and run the app from the BAT.  
Alternatively, run a rexx batch that runs the app from its objectID as stated 
above.  
Running DOS sessions from an OS/2 session, particulary complicated ones such 
as a BBS requires a good understanding of what is going on, and not necessary 
anyway. The only reason I can see to do it is to use REXX as your script 
language.  There is almost no difference between an OS/2 cmd file, and a DOS 
BAT file, unless the OS/2 CMD file is a REXX script.
 RJT> If so,  it'll make things a bit easier for me to get going here 
 RJT> under a completely OS/2 system before I find equivalents to all 
 RJT> of the stuff I'm using now... 
What specifically are you trying to accomplish?  It is likely a LOT easier 
than you think.  (using an objects ID to start a session is a little tricky 
for the beginner, that comes later, after you learn how things work and a 
little REXX.
                                              Jack 
--- timEd/2-B11
---------------
* Origin: Jack's Free Lunch 4OS2 USR16.8 Pgh Pa (412)492-0822 (1:129/171)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.