> Message du 24/11/08 08:23
> De : [EMAIL PROTECTED]
> A : [EMAIL PROTECTED], beginners@perl.org
> Copie à :
> Objet : RE: help in redirecting output to file
>
>
> Thanks but I need STD output and STD error in the same file. How should I do
> that.
>
open STDERR
redirecting output to file
Why don't u use this code :-
open NEW_OUT,">output.txt";
select NEW_OUT; # making output.txt to take the
default STD output
Hope this helps...
BR/Nitin
--- [EMAIL PROTECTED] wrote:
>
> Hi All,
>
>
>
> Can somebody please help me f
On Nov 20, 2:15 pm, [EMAIL PROTECTED] (Irfan Sayed) wrote:
> Hi All,
>
> Can somebody please help me for this block of code.
>
> if ("$1" ne "-log"){
>
> `$0 -log "$@" 2>&1 | tee the_log_file.$$.log`;
>
> exit 0;
>
> }
>
> I know this code redirects the output of entire perl script to file but
> it
Why don't u use this code :-
open NEW_OUT,">output.txt";
select NEW_OUT; # making output.txt to take the
default STD output
Hope this helps...
BR/Nitin
--- [EMAIL PROTECTED] wrote:
>
> Hi All,
>
>
>
> Can somebody please help me for this block of code.
>
>
>
> if ("$1" ne "-log"){
>
Hi All,
Can somebody please help me for this block of code.
if ("$1" ne "-log"){
`$0 -log "$@" 2>&1 | tee the_log_file.$$.log`;
exit 0;
}
I know this code redirects the output of entire perl script to file but
it is not executing as expected.
Can somebody please explain / help
Re