[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] PHP and crontab
- Subject: RE: [cobalt-users] PHP and crontab
- From: "Dan" <dan@xxxxxxxxxxxxx>
- Date: Mon Jun 12 03:50:12 2000
>
> 0 0 * * * * curl http://www.yoursite.com/myscript.php3
> 0 0 * * * * lynx -dump http://www.yoursite.com/myscript.php3
> will every night at midnight will execute cURL (a killer command
> line stdout
> web browser/tool) or use Lynx to essentially do the same thing,
> respectively.
>
I was looking for a method to call a CGI script on another server every day
at a certain time. Would one of these accomplish that? Is curl something
that's installed by default on a RAQ2?
I tried the crontab:
20 14 * * * * curl http://www.domain.com/cgi-bin/script.cgi
Then I received an email from the server:
From: Cron Daemon
Sent: Monday, June 12, 2000 2:20 PM
Subject: Cron <admin@admin> * curl http://www.domain.com/cgi-bin/script.cgi
/bin/sh: script.cgi: command not found
Then I tried lynx -dump instead and got:
From: Cron Daemon
Sent: Monday, June 12, 2000 2:40 PM
Subject: Cron <admin@admin> * lynx -dump
http://www.domain.com/cgi-bin/script.cgi
/bin/sh: script.cgi: command not found
Any ideas?
TIA
--
Dan Kriwitsky