I want to create a cronjob at my Ubuntu server by adding/modifying a file in the /etc/cron.d folder, rather than using crontab -e as it's not too easy to automate.
I've managed to make a file looking like this:
* * * * * username command >> logfile
I can tell that the file is there, I've chmoded it to 777 but it still isn't executed or appears when I do crontab -l as root. What am I doing wrong?
crontab -eand usecrontab my_private_crontab_fileorcrontab -. – maaartinus Mar 6 '12 at 5:11crontab -l. Please chmod the file to 0600 and chown it to root.root – JodieC Mar 12 '12 at 1:59