Article View: comp.sys.ibm.pc.programmer
Article #865Re: Redirecting to/from spawnxx()ed program?
From: RAMontante
Date: Fri, 06 Jul 1990 16:39
Date: Fri, 06 Jul 1990 16:39
8 lines
896 bytes
896 bytes
I believe that spawn...() doesn't start a command shell, which is what you need to do redirection. There is another call, system() I think, which does start a command shell and feeds the arguments to it. You could use that. The arguments should be essentially a command line that is to be fed to command.com, but I don't have my manuals at hand to check any of this. Or you could spawn...() a command.com, and build an arg list for it that does what you need, but the system() call (in TC2.0) does all that for you.
Technical Details
Message-ID:
<49978@iuvax.cs.indiana.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!iuvax!bobmonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!iuvax!bobmon From: bobmon@iuvax.cs.indiana.edu (RAMontante) Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer Subject: Re: Redirecting to/from spawnxx()ed program? Keywords: redirect stdin/stdout Message-ID: <49978@iuvax.cs.indiana.edu> Date: 6 Jul 90 16:39:47 GMT Organization: malkaryotic Lines: 8