From: ams AT ludd DOT luth DOT se (Martin Str|mberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: spawn !? Date: 29 May 1999 23:38:52 GMT Organization: University of Lulea, Sweden Lines: 24 Message-ID: <7iptqc$jik$3@news.luth.se> References: <37501cf1 DOT 71827221 AT news DOT luebeck DOT netsurf DOT de> NNTP-Posting-Host: queeg.ludd.luth.se X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com ^Hawk^ (Hawk AT DarkSoft DOT Net) wrote: : I want to execute a simple command line like "d:\temp\temp.exe : command1 command2 ..." or "temp.exe" or "temp.exe command1". The path : / the program and the commands (if given) are all in the same string. : : How can I execute those single strings via spawn or exec ? It looks : (in the docs) that spawn/exec need much more params as I have. Examine libc's system(). : Ohh ... the program which I want to execute out of my program is a dos : real mode program and it should not executed within the 640KB because : there is not enough free if my own program runs. Real mode and not "within the 640KB" don't compute (in x86). Does your program really use all DOZE memory (through __dpmi_allocate_dos_memory() and similar calls)? If not, how did you reach this conclusion? If it do, I don't see any obvious solution. Alanis Morissette, Supposed Former Infatuation Junkie, MartinS