LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-14-2005, 11:34 PM   #1
dtra
Member
 
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/site.com/httpdocs/cron/lset-all-online-cron.php > /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

thanks
dave

Last edited by dtra; 07-14-2005 at 11:38 PM.
 
Old 07-15-2005, 05:45 AM   #2
Nathanael
Member
 
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??
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration