LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   cron Problems (http://www.linuxquestions.org/questions/debian-26/cron-problems-470024/)

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:
Quote:

/etc/cron.d/syscp
Content:

Quote:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/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:

Quote:

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: <20060802112001.1DEA8900780@delta551.server4you.de>
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
Code:

*/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 03:08 PM.