Path: utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!techunix.BITNET!buzy From: buzy@techunix.BITNET (boaz binnun) Newsgroups: comp.lang.c Subject: redirecting a child process output to a file Message-ID: <8430@techunix.BITNET> Date: 18 Jun 89 07:19:01 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: buzy%techunix.bitnet@jade.berkeley.edu (boaz binnun) Organization: Technion, Israel Inst. Tech., Haifa Israel Lines: 21 I need to redirect the output of a child process to a file, I am working with Turbo C, what I did was : char *args[] = { "child.exe", "argument", ">", "filename", NULL }; and than : spawnl(P_WAIT,args[0],args[0],args[1],args[2],args[3],args[4]); and it didnt work,does anyone know why ? Many thanks Boaz Bin-nun buzy@techunix.bitnet or buzy@techunix.technion.ac.il