Parag Kalra <paragka...@gmail.com> writes: > Hey All, > > I am trying to execute a Perl via shell script. I want to redirect output of > Perl script to one file and error occured (if any) to other file. > > This is the snippet from my shell script: > > perl output_error.pl 1>> Report.log 2>>Error.log > > However even normal print messages are going to Error.log. Any clue?
I'm not really that sure why that would happen but I think this should work: perl output_error.pl 2>> Error.log >>Report.log File descriptor 1 is on `STDOUT' by default and a '>' or '>>' will redirect it by defaulit. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/