Re: system function wont redirect output

2003-09-07 Thread Steve
ahhh nevermind it was a typo.. i hade >2&1 shoulda been 2>&1 , dont know how that got changed and how i didnt notice it sorry heh ;p On Sun, 2003-09-07 at 06:24, Steve wrote: > hey, in my program im just trying to redirect the commands output but i > get the error: > sh: line 1: 1: command not fou

system function wont redirect output

2003-09-07 Thread Steve
hey, in my program im just trying to redirect the commands output but i get the error: sh: line 1: 1: command not found code: $return = system("tar czvf $tar $files > $logfile >2&1"); if i take out the > $logfile >2&1 , it works fine but i get that error with it in, but the werid thing is it did