🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #861

Redirecting to/from spawnxx()ed program?

#861
From: Frank Burleigh
Date: Fri, 06 Jul 1990 10:31
20 lines
1263 bytes
The Subject says pretty well what I want: to redirect the
output from, or input to, a program run from one of the
spawnxx() functions.  Can it be done?

As an example, suppose your program spawned a program that
might need a long list of files and that doesn't in its own
design take a command line option giving a file name of a
file containing those file names.  If one could redirect
such a file into the program, one might avoid rerunning
the spawned program over and over until the list of files
is exhausted.

I'm using TC2/MSC6.

Thanks in advance for any ideas and comments, yea or nea.

-- 
Frank Burleigh  burleigh@cica.cica.indiana.edu
USENET: ...rutgers!iuvax!cica!burleigh BITNET: BURLEIGH@IUBACS.BITNET
Department of Sociology, Indiana University, Bloomington, Indiana 47405
Technical Details
Message-ID: <2589@cica.cica.indiana.edu>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!burleigh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cica!burleigh
From: burleigh@cica.cica.indiana.edu (Frank Burleigh)
Newsgroups: comp.sys.ibm.pc.programmer,alt.msdos.programmer
Subject: Redirecting to/from spawnxx()ed program?
Keywords: redirect stdin/stdout
Message-ID: <2589@cica.cica.indiana.edu>
Date: 6 Jul 90 10:31:57 GMT
Organization: IU, Bloomington
Lines: 20