>        open (HDW,">>",$err_log)
>            or die "Can't open log file $err_log: $!\nError: "[EMAIL 
> PROTECTED];
>        print HDW $time,"  ",@_
>            or die "Can't write to log file $err_log: $!\n Error: "[EMAIL 
> PROTECTED];

Thanks,Jay,you are more exactly.
I don't use the 'or die ...' statements on this case,is because my script is a 
daemon,it re-direct all its stdout,stdin,stderr to /dev/null.So even I use 
these odditional statements,I still can't see the output on screen.

--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to