Jump to content

Crond doesn't seem to be working

Recommended Posts

I have put things in the /etc/cron.daily folder and the script doesn't seem to run. As I look, it doesn't seem any of those scripts in there (from Mandriva) seem to be running. If I run the command: run-parts --report /etc/cron.monthly it will start executing those scripts...


Crond is running according to mcc - so what is the deal?



[moved from Software by spinynorman]

Link to comment
Share on other sites

Environment variables won't be called by cron. You need to set the PATH variable or use the full path to the binary like so:


30 3 * * * /bin/sh /mail/mailbox.size.check.sh

Link to comment
Share on other sites

If you're machine isn't running all the time, you can also install anacron which will mean that as soon as you power it up, any scripts that were meant to run will run.


But I expect that you're script isn't executable, or alternatively at the beginning of the file you've forgotten to add this:




would have to be on the first line.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...