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:

 

#!/bin/bash

 

would have to be on the first line.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...