Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How do I print errors

by vek (Prior)
on Oct 01, 2003 at 19:42 UTC ( [id://295737]=note: print w/replies, xml ) Need Help??


in reply to How do I print errors

I have a script that seems to fail when it is scheduled.

I suspect that this is a cron job then. One quick and dirty way of handling this would be in the crontab.

10 * * * * /path-to/your-prog.pl >> /path-to/log 2>&1

Any STDOUT and STDERR will be captured & written to your log.

-- vek --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://295737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found