Crontab not working or shell scripts wrong setup?

Posted November 11, 2013 3.2k 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.
Submit an Answer