Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-15-2005, 12:34 AM   #1
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
cron issue, php script runs fine in browser and cli

hi all

nm, i wasn't using absolute addresses in the includes part

using fc3

i'm just having an issue running a php script in the cronjobs

*/3 * * * * /bin/nice -n 19 /usr/bin/php /home/www/ > /dev/null &

the script works fine when run from a browser or the command line
but set as a cronjob it never runs
i have tried copying the exact text from the crontab and pasting it on the command line and it runs fine

i have 3 or 4 other php scripts that are being run as crons
and they all run fine
with very similar timeing intervals

is there a limit to how many scripts i can run or something?
this particular script is definitely not running


Last edited by dtra; 07-15-2005 at 12:38 AM.
Old 07-15-2005, 06:45 AM   #2
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
perhaps nice is located in /usr/bin and not /bin??


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 09:09 AM
cron NOT running php script ??!! hendrixx Linux - Software 2 11-15-2006 08:18 AM
Problem executing a linux script from php that runs ffmpeg darkisolde Linux - Software 4 10-04-2005 08:43 AM
cron NOT running php script ??!! hendrixx Programming 1 01-19-2005 06:36 AM
script runs fine from a command line, but doesn't work from cron? kleptophobiac Linux - Software 5 05-03-2004 05:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 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
Open Source Consulting | Domain Registration