🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1949

Help with forkl (or Fork you too)

#1949
From: Ben 'Drew' Herman
Date: Wed, 01 Nov 1989 23:52
36 lines
1502 bytes
HELP ME...... I've Had it.

I want to spawn a command form a C program and have the output 
redirected to a file. (I'd also like to know when the process
has completed - ie wait for the process to complete)

I found forkl,forkv two of my freinds in past C expeditions on other systems.

so I try 

forkl("zoo","zoo","l",archivename,NULL,env,&child);

where
struct FORKENV *env

to redirect the output I need to do what??????

I tried env->std_out = filehandle (which read env->stdout in the man)

where filehandle has equaled int, FileHandle *, FILE *; I even set
env->std_out = stdout -- which hangs the machine.

PLEASE HELP ME -- I JUST SPENT 8 Hours trying to do this and I'm pretty fed
Up with the documentation and the computer.

Thanks for your Understanding and help.

PS. I don't read this newsgroup and therefore request a direct reply.
Thanks again
Ben Herman
her3@tank.uchicago.edu
ben@rover.bsd.uchicago.edu
-- 
Internet: her3@tank.uchicago.edu  or ben@roverd.uchicago.edu
BITNET:   her3@tank.uchicago.bitnet
UUCP:    {ihnp4!gargoyle,oddjob}!tank!her3   (this undoubtedly nolonger works )
Technical Details
Message-ID: <6083@tank.uchicago.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!her3

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!her3
From: her3@tank.uchicago.edu (Ben 'Drew' Herman)
Newsgroups: comp.sys.amiga.tech
Subject: Help with forkl (or Fork you too)
Message-ID: <6083@tank.uchicago.edu>
Date: 1 Nov 89 23:52:26 GMT
Reply-To: her3@tank.uchicago.edu (Ben 'Drew' Herman)
Organization: University of Chicago
Lines: 36