can't get cron working on debian
i'm trying to set up a cron to run a simple command and yet anything i try never actually works
i'm on debian 7 and i've checked that crond is running the test cron i've been using is this: file: /etc/crontab Code:
*/1 * * * * echo "testing cron" >> /home/test.txt any tip on getting cron working? |
is there anything logged in your log files? if you haven't modified your (r)syslog configuration then check syslog for any messages. also, if you use /etc/crontab the syntax you need to use is:
Code:
*/1 * * * * <USER> echo "testing cron" >> /home/test.txt |
'Missing newline before EOF, this crontab file will be ignored'
i swear that wasn't there last time i checked.. i've added the EOF line and its' working now... :( |
You'll also find that */1 is technically not required, * indicates every minute.
|
"/home/test.txt" - does this file exist and is it writable by the user with whose privileges the cron job runs?
|
All times are GMT -5. The time now is 08:15 AM. |