Scripts in cron.d suddenly not working
I dunno what is going on here, but I recently added a script to run every 10 minutes to /etc/cron.d
It was working fine for a week but then it suddenly stopped working (and I made no changes to the script at any point).
The script looks like this:
0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/
But when I try and run the script to test it I get the following error:
paladine@
./awstats: line 1: 0,10,20,30,40,50: command not found
Yet if I run:
sudo /usr/lib/
It works fine.
I can't figure out why cron has suddenly stopped working with scripts in /etc/cron.d no matter what script I try to add there, it fails with "command not found" it just makes no sense.
Any help appreciated.
Paladine
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu cron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Paladine
- Solved:
- Last query:
- Last reply: