I store some of my configuration files in version control. Recently I tried to setup a daily anacron job so that I won't have to manually update the files. I have never used cron or anacron before but reading through cron documentation I decided to put my script in
/etc/cron.daily. Below is my script named
dot-files (changed to executable with
#!/bin/sh cd /home/dell/dot-files && /usr/bin/git add . && /usr/bin/git commit -a -m 'daily update' && /usr/bin/git push -u origin master
However it doesn't seem to be running for the last two days. Here are the lines from
Aug 21 10:42:02 dell-Studio-1535 anacron: Job `cron.daily' terminated (exit status: 1) (mailing output) Aug 21 10:42:02 dell-Studio-1535 anacron: Can't find sendmail at /usr/sbin/sendmail, not mailing output
Can anyone see what's wrong with that? Also am I using a wrong setup for the purpose?
p.s. I'm using an ubuntu 12.04 system and it's not always running.