LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-02-2006, 06:26 AM   #1
stormblast
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:
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!
 
Old 08-02-2006, 06:39 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,682

Rep: Reputation: 124Reputation: 124
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...
 
Old 08-02-2006, 06:49 AM   #3
stormblast
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 :/
 
  


Reply

Tags
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


All times are GMT -5. The time now is 01:41 AM.

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