Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Log Files

by lemming (Priest)
on Jan 02, 2002 at 06:23 UTC ( #135595=note: print w/replies, xml ) Need Help??


in reply to Log Files

Not the clearest question, but here's a try
You can reopen STDOUT and STDERR in your perl script so that the output goes to the log files.

open(STDOUT, ">>stdout.log") or die "horribly";
After that your default print statements goes to stdout.log. Doing the same with STDERR will cause all your error messages to be sent to the log. You may to turn buffering off for this purpose as well.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://135595]
help
Chatterbox?
[chacham]: experience is 8286. reminds me of our first computer
[Corion]: :D
[chacham]: first intel that is. my brother had a an apple ][e some time before that

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2017-03-22 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (276 votes). Check out past polls.