Results 1 to 1 of 1
Hello Guys,
I have been Googling about and I havn't been able to find it anywhere.
Well I found it, but it just doesnt work
Let me explain:
* I ...
- 11-02-2009 #1
Perl Redirect STDOUT
Hello Guys,
I have been Googling about and I havn't been able to find it anywhere.
Well I found it, but it just doesnt work
Let me explain:
* I got a piece of Perl code that needs to redirect STDOUT to /var/log/mylog.log
* This logfile has the user rights 664.
* I do the Following to Redirect it:* If I'd place a "print" directly after this. Well it works. But the other prints in the program. Don't egCode:open STDOUT, ">/var/log/mylog.log" || die $!;
* This is all one function, however other subs are called. These subs don't use print at all.Code:print $startTime . "\n";
So, Any advice? Or would more information be required?
Thanks,
Robin
[Edit: Turned on Instant email notification]


Reply With Quote