krisbee2000 Posted March 11, 2011 Report Share Posted March 11, 2011 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] Quote Link to comment Share on other sites More sharing options...
scarecrow Posted March 11, 2011 Report Share Posted March 11, 2011 (edited) Maybe a stupid question: Did you make your scripts executable? (chmod +x) and given them the right permissions? Edited March 11, 2011 by scarecrow Quote Link to comment Share on other sites More sharing options...
K Bergen Posted March 11, 2011 Report Share Posted March 11, 2011 Another silly question. Is your computer running at 4:00AM or do you turn it off for the night? Quote Link to comment Share on other sites More sharing options...
Lardy Posted March 14, 2011 Report Share Posted March 14, 2011 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 Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted March 14, 2011 Report Share Posted March 14, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.