Crontab not working or shell scripts wrong setup?

Posted November 11, 2013 3.7k 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.

Submit an Answer
2 answers
Are its permissions set properly? Try running chmod +x /vpndel/script.
by Henrique Pinheiro
This tutorial is aimed at teaching you how to write shell scripts for the most variety of purposes. Shell scripts can be used to run multiple commands, a single command with difficult and extensive arguments, or more user friendly interfaces for distributing your work.