This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Cron Issues? Help Please
[Not Solved] Cron Issues? Help Please
Hey all

So im having a bit of a strange issue which I cant seem to solve myself, and Im hoping someone can help me with it

I was wanting to setup a simple cron script to run every 10 min's on one of my websites
I made the script and tested it, and it worked fine, I then went to add the cron in the control panel and that added with no problems.

However, the script didnt want to run, and I couldn't figure out why.
I gave up at that point and decided to attack it another day, which was today

I made a simple php script to write "test" to a text file, and loaded that into cron.
Still nothing

So I did a grop for CRON on the syslog and found that the php i was using a few days ago was running every 10 mins.
and the one I just added isnt showing up anywhere

I checked the /var/spool/cron/crontabs/www-data and found the second test php was in there, and nothing aobut the first one, which is the one thats running.

Im not sure where to go from here, Anyone got any ideas?
Im sure its something stupid I have missed

Quick update

I deleted the test cron from the web interface, and checked the spool/cron www-data and can confirm that its gone from there

however the test cron is still showing in syslog every min, and im not sure where its being called from
And the test cron doesnt seems to be running properly either as the text file it writes to is empty
Thanks given by:
[Not Solved] RE: Cron Issues? Help Please
You need to check the permissions for the files and folders:
Also, I think the cron service was not restarted properly. Try doing it manually.
Cron jobs are loaded only once during startup and are not 'read' each time the cron runs, therefore a restart of the service will reload the new/changed cron jobs.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Thanks given by:

Possibly Related Threads...
Thread Author Replies Views Last Post
Cron still run after delete theRiyazSaifi 2 505 12-08-2017, 07:24 PM
Last Post: Me.B
Disk Quota Issues JSmith 4 1,404 07-24-2017, 10:33 PM
Last Post: JSmith
Cron not running JonathanNet 5 1,401 07-11-2017, 01:04 AM
Last Post: TGates

Forum Jump:

Users browsing this thread: 1 Guest(s)