RE: help in redirecting output to file

2008-11-24 Thread Jeff Pang
> 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

RE: help in redirecting output to file

2008-11-23 Thread Irfan.Sayed
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

Re: help in redirecting output to file

2008-11-20 Thread Brian McCauley
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

Re: help in redirecting output to file

2008-11-20 Thread Nitin Kalra
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"){ >

help in redirecting output to file

2008-11-20 Thread Irfan.Sayed
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