Re: Redirecting the Output and Error of Perl script

2010-05-01 Thread Shawn H Corey
Parag Kalra wrote: Thanks all... I was printing in normal fashion. I should have used something lik: print STDERR "stderr\n"; as suggested by all. Perhaps you should be using warn and die: warn "This appears on STDERR\n"; -- Just my 0.0002 million dollars worth, Shawn Programming

Re: Redirecting the Output and Error of Perl script

2010-05-01 Thread Parag Kalra
Thanks all... I was printing in normal fashion. I should have used something lik: print STDERR "stderr\n"; as suggested by all. Cheers, Parag On Sat, May 1, 2010 at 1:55 AM, Philip Potter wrote: > On 30 April 2010 18:45, Parag Kalra wrote: > > Hey All, > > > > I am trying to execute a Perl

Re: Redirecting the Output and Error of Perl script

2010-05-01 Thread Philip Potter
On 30 April 2010 18:45, Parag Kalra wrote: > 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.

Re: Redirecting the Output and Error of Perl script

2010-04-30 Thread Harry Putnam
Parag Kalra 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 n