spawn, MSC

Gene McManus nts0699 at dsacg1.UUCP
Fri Jun 10 23:55:24 AEST 1988


>From article <1113 at cod.NOSC.MIL>, by murphys at cod.NOSC.MIL (Steven P. Murphy):
> 
> I am having problems getting MSC V5 to spawn(vp) an other command.com shell.
> What I'm trying to do is run a batch file with some interrupts changed,
> I already hooked the interrupts but I can't get spawn to build another shell.
> 
> 	Any help would be greatly appreciated
> 
> 						Murph
> 
> ------------------------
> 
> S. P. Murphy
> Internet: murphys at cod.nosc.mil      UUCP: {ucbvax,hplabs}!sdcsvax!nosc!murphys

	I don't have the manual right in front of me, but if memory serves,
	spawn() can only be used to start a .com or .exe. It should work to
	start command.com, if that's what sent to spawn() as the .com file.
	To start a .bat file, use system("xxxx");  .

	The system() call invokes another command.com shell.


	Regards,
	Gene


Gene McManus @ Defense Logistics Agency Systems Automation Center,
	       Columbus, OH 43215 (614) 238-9403,    Autovon 850-
UUCP:		{uunet!gould,cbosgd!osu-cis}!dsacg1!gmcmanus
The views expressed are my own, not those of The Agency, or Dept. of Defense



More information about the Comp.lang.c mailing list