Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!husc6!bbn!rochester!pt.cs.cmu.edu!andrew.cmu.edu!bader+ From: bader+@andrew.cmu.edu (Miles Bader) Newsgroups: comp.sys.amiga Subject: lattice c question Message-ID: Date: 20 Oct 88 01:51:45 GMT Organization: Carnegie Mellon Lines: 16 I'm using the forkv() call to run a subprocess. I want to redirect the suprocess's output to a file by (leaving out error checking): static struct FORKENV env = {0,0,0,0,0,0}; file=fopen("...","w+"): env.std_out=fileno(file); forkv(prog,argv,&env,&child); wait(&child); This works when I don't try to redirect stdout (using NULL instead of &env), and I've tried using "(long)file" instead of fileno(file), but both guru. So, is a fileno(...) the right type for env.std_out? If not, what is (and how do I get one from file)? Thanks abunch... -Miles