TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Adam
date: 1996-12-01 18:22:02
subject: Dos swapping

G'Day Paul,
 
-=> Quoting Paul Edwards to All <=-

 PE> Although not a problem under OS/2, I would also like to 
 PE> have the ability to run from DOS if required.  I know most 
 PE> people go to great lengths to not call system() under DOS, 
 PE> in order to save memory, and use functions like spawn etc.
System() only returns success or failure for running the other app. 
Spawn() has the option to grab the program's exit code. That's why i 
favor it in my own proggies.
I don't see any big difference between the two memory wise, except
that system() starts a new instance of COMSPEC, spawn() if it does, 
it doesn't show up in mem/c and gains 3-4 Ks over system().   
                                                                               
     
 PE> I'd like to know whether the fact that my program is going 
 PE> to be quite small (consisting mainly of cd's and system's) 
 PE> is going to mean that I don't have any problem worth 
 PE> bothering about under DOS.
System() should be ok, i ran anything within memory bounds without 
problems.      
But being BBS programs, don't you need to know those exit codes ?? 
OTOH there is always the logs but..hm...
                                                        
 PE> Oh, I'm also intending that this same program be used under 
 PE> Linux, so that I can boot my system under Linux or OS/2, 
Not a clue.
Can you run Linux out of OS/2 btw ?

  L8r Frank (fadam{at}ozemail.com.au).         

___ Blue Wave/DOS v2.21

---
* Origin: Melbourne PC User Group BBS (3:632/309)
SEEN-BY: 633/267 270
@PATH: 632/309 107 360 50/99 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

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™.