in reply to Sending a http request from a cron script
Cron automatically mails anything on STDERR to the address in the MAILTO environment variable. You can set that at the top of your crontab, or else in the command line you give the crontab for your perl script. Then if things go wrong, just say, warn $msg if $condition; in your script and the news is in the mail.
To answer your question anyway, if you need to make a request to some webserver in a script, cronned or not, LWP::UserAgent is the classic choice.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sending a http request from a cron script
by manav (Scribe) on Mar 29, 2005 at 13:45 UTC |