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 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 work before this is very > puzzling as i dont believe i changed anyhting and it did indeed work > before, now as i understand it Learning Perl 3rd Edition says if its a > simple cmd like ls then perl will just excute it if its anyhting more > complicated the shell will, but yeah i need to redirct the output any1 > know why this isnt working as it should right? > thanks. > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]