cron troubles

This is a discussion on cron troubles within the Linux Programming forums, part of the Platform Specific Boards category; So I am trying to run a script on start up every minute. I have added the bash script to ...

cron troubles

So I am trying to run a script on start up every minute. I have added the bash script to my /etc/init.d/ directory and updated my rc.d file with the update command and used the defualts. So in order to run the script every minute I am attempting to use crontab. I opened crontab with sudo crontab -e and entered * * * * * sh /path/to/script.sh and it does not work. Google shows a lot of people have this same issue but I cannot seem to find a solution. Mostly suggestions. What am I doing wrong? Is there an easier approach?

If the /etc/cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the /etc/cron.allow file does not
exist but the /etc/cron.deny file does exist, then you must not be listed in the /etc/cron.deny file in order to use this command. If neither of
these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users
will be able to use this command. For standard Debian systems, all users may use this command.
...
BUGS
Although cron requires that each entry in a crontab end in a newline character, neither the crontab command nor the cron daemon will detect this
error. Instead, the crontab will appear to load normally. However, the command will never run. The best choice is to ensure that your crontab has a
blank line at the end.

Also, check the cron daemon is actually configured to run on your system

Code:

$ ps -A | grep cron
1169 ? 00:00:00 cron

Also, does your script rely on the full set of environment variables (like $PATH) to be setup?
The environment that cron provides to your script is positively spartan compared to what you get at your bash prompt.

The cron daemon isn't automatically ran on startup. i use pgrep to find if there is a running cron daemon but none are found. My solution is working. I only need to manually run it the first time. Thanks Salem!

For one, cron is not running on start up. Two, I cannot find anything with the name crond on my system. No daemon is even present. Even when i manually start cron, my programs won't work anyway. So, why mess with cron and frustrate myself, when what i am doing is already working??