Crontab not working or shell scripts wrong setup?

November 11, 2013 1.6k views
Hello! I tried to setup a cronjob with crontab to run a shell script every 10 minute. But it´s not working. The Shell Script file: " #!/bin/bash # Remove Files rm -f /var/log/messages " The Crontab -E Config file: " */10 * * * * /vpndel/script "¨ But when i check the log file the text is still there after 10 minutes have gone? What could be wrong?
2 Answers
Are its permissions set properly? Try running chmod +x /vpndel/script.
by Etel Sverdlov
This tutorial includes an incredibly simple bash script that checks if a certain program is running. If it is not running, the script will start it up. Additionally the tutorial includes steps on setting up the simple script as a cron job.
Have another answer? Share your knowledge.