LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Closed Thread
 
Search this Thread
Old 01-19-2005, 05:31 AM   #1
hendrixx
Member
 
Registered: Aug 2003
Location: Netherlands
Distribution: SuSE 10 Pro
Posts: 43

Rep: Reputation: 15
cron NOT running php script ??!!


Hi all,

I have a little problem with a cron job.
I have a php script wich i would like to run once every midnight at 00:05
Problem is that if i put this in with the crontab -e it does not run (correctly)
However if i use the exact same command from console logged in as the same user it runs perfectly.
Any idea's what i am missing ?

This is the command line i am using in crontab -e :

Code:
05 00 * * * /usr/local/bin/php -q /var/www/html/mohstats047/mohstats.php /var/www/html/stats/qconsole.log
I have also a little perl script scheduled at 00:06 every day wich is running fine.


.....Jimmy
 
Old 01-19-2005, 05:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
  


Closed Thread


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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
cron NOT running php script ??!! hendrixx Linux - Software 2 11-15-2006 07:18 AM
cron error when running script? meeble Linux - Software 3 09-09-2004 05:00 PM
running a 'dcop' script from 'cron' dsunger Linux - Software 0 05-10-2004 01:17 AM
script not running correctly off cron wedgeworth Linux - Software 3 10-14-2003 08:30 AM


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

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