her3@tank.uchicago.edu (Ben 'Drew' Herman) (11/02/89)
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 )