Chad Tower wrote: > > This isn't win32 perl but someone here could probably answer it... I'm > trying to use a system call to call a sh script on bsd. Basically, I want > the stdout and stderr to go to the same output file a la: > > doall >& out.log > > But if I try to do that in a system call it gives an error. I can do it > from the command line... I think it has something to do with the calling > context of a system call in unix but I don't know enough about that. I've > also tried: > > system("doall > out.log 2&>1") Is that a typo ? should be 2>&1 Or maybe you're using a different shell ? > The STDERR from that does not end up in out.log, though. What am I missing > here? I just want both err and out from the command called by system() to > be redirected to a file. Am I going to have to do something like pipe the > output from the command via open? I've never done anything like that. -- ,-/- __ _ _ $Bill Luebkert ICQ=14439852 (_/ / ) // // DBE Collectibles http://www.todbe.com/ / ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/ -/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/ _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users