[thelist] PHP & Chron Jobs

Beam sbeam at syxyz.net
Mon Feb 17 09:53:01 CST 2003


> If the ISP insists that you run a perl file, try this:
> * 0 * * * perl /home/username/report.pl
>   where report.pl is the following:
> #!/usr/bin/perl
> `wget http://yourserver.com/cron/jobs/report.php -O /dev/null >/dev/null
> 2>/dev/null`;

If you use the -b option to wget it goes to the background, you will get the
report.php output in a file. And the wget output in wget-log. You can also
use lynx like this.

if you don't have wget or lynx on the host you could do a simple http request
using the LWP::Simple module. Look at the docs, its real easy.

hth



More information about the thelist mailing list