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
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
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.
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