redirecting a child process output to a file
boaz binnun
buzy at techunix.BITNET
Sun Jun 18 17:19:01 AEST 1989
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 at techunix.bitnet or buzy at techunix.technion.ac.il
More information about the Comp.lang.c
mailing list