0

I scheduled the following cronjobs

#Backup the emacs configuration file
*/15 *  * * * (cd /home/me/.emacs.d/; git add .; git commit -m "Defensively Backup")
*/30 *  * * * ( cd /home/me/.emacs.d/; git push)

.emacs.d is a symbolic link

$ ls -al ~ | grep 'emacs' | sed "s/$USER/me/g"
lrwxrwxrwx  1 me me        39 Mar 18 23:01 .emacs.d -> /home/me/Documents/private.emacs.d/

The backup is scheduled to run every 15 minutes ,
Unfortunately, they did not execute as intended

:57PM 19/03 Tuesday:me@host:~/.emacs.d:
$ git log | head -n 10
commit 8b321a7c36e312745dcc996105a52d95aa8dca54
Author: gcpu.whisper@gmail.com <gcpu.whisper@gmail.com>
Date:   Sun Mar 17 21:05:01 2019 +0800

    Defensively Backup

commit 637887ebd66c5cb5340e5402a9966cb5e1779be3
Author: me@host<gcpu.whisper@gmail.com>
Date:   Fri Mar 15 21:05:01 2019 +0800

Refer to syslog

   $ grep -i '.emacs.d' /var/log/syslog | tail -n 5 | sed "s/$USER/me/g" | sed "s/$HOSTNAME/host/g"
    Mar 19 12:30:01 host CRON[19524]: (me) CMD (( cd /home/me/.emacs.d/; git push))
    Mar 19 12:30:01 host CRON[19525]: (me) CMD ((cd /home/me/.emacs.d/; git add .; git commit -m "Defensively Backup"))
    Mar 19 12:45:01 host CRON[25093]: (me) CMD ((cd /home/me/.emacs.d/; git add .; git commit -m "Defensively Backup"))
    Mar 19 13:00:01 host CRON[31792]: (me) CMD (( cd /home/me/.emacs.d/; git push))
    Mar 19 13:00:01 host CRON[31793]: (me) CMD ((cd /home/me/.emacs.d/; git add .; git commit -m "Defensively Backup"))

They were executed,

Where could I find the error log?

Browse other questions tagged or ask your own question.