I tried to setup a cronjob with crontab to run a shell script every 10 minute. But it´s not working. I want the shellscript to delete the specific file "/var/log/messages" every 10 min.
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?