Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-02-2006, 06:26 AM   #1
LQ Newbie
Registered: Apr 2004
Location: Germany
Distribution: Debian 3.1
Posts: 24

Rep: Reputation: 15
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!
Old 08-02-2006, 06:39 AM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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...
Old 08-02-2006, 06:49 AM   #3
LQ Newbie
Registered: Apr 2004
Location: Germany
Distribution: Debian 3.1
Posts: 24

Original Poster
Rep: Reputation: 15
I removed the line break and the empty line but still getting the same error :/


cron, file, input

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Problems eagle683 Programming 6 07-26-2005 06:26 PM
CRON problems jlinden Linux - Newbie 4 09-03-2003 12:23 PM
CRON problems jlinden Linux - General 1 09-02-2003 02:16 PM
Cron problems... jmeile Linux - Software 1 05-23-2002 12:16 PM
Cron problems goochable Linux - Newbie 3 04-17-2001 07:43 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration