-   Debian (
-   -   cron Problems (

stormblast 08-02-2006 06:26 AM

cron Problems
Debian Sarge 3.1.
I got the following cron setup for on of my crons:

I created the file:



*/5 * * * * root /usr/bin/php4 -q -c /etc/php4/syscpcron /var/www/syscp/scripts/cronscript.php
(One empty line at the end)

Executing /usr/bin/php4 -q -c /etc/php4/syscpcron /var/www/syscp/scripts/cronscript.php manually by command line is working fine but with the cron it doesn't work.

That's the error every 5 minutes:


Subject: Cron <root@delta551> /usr/bin/php4 -q -c /etc/php4/syscpcron /var/www/syscp/scripts/cronscript.php
X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Message-Id: <>
Date: Wed, 2 Aug 2006 13:20:01 +0200 (CEST)

Could not open input file: /var/www/syscp/scripts/cronscript.php
All files exist and I even chmoded /var/www/syscp/scripts/cronscript.php to 777 but it didn't help.

Could anyone help me out here, please? Thanks a lot!

Dutch Master 08-02-2006 06:39 AM

Did you break the line

*/5 * * * * root /usr/bin/php4 -q -c /etc/php4/syscpcron /var/www/syscp/scripts/cronscript.php
with the [enter] key or is it a continuous line? If the former, the shell interprets the "/var/www/syscp/scripts/cronscript.php" part as a new command...

stormblast 08-02-2006 06:49 AM

I removed the line break and the empty line but still getting the same error :/

All times are GMT -5. The time now is 09:57 PM.