0

I configured a regular task

me@alpha:~$ crontab -l | grep '^\*'
*/5 * * * * (cd ~/Documents/OrgMode; git add .; git commit -m "defensively save")

It works but I cannot find the log in mail.log

me@alpha:~$ grep 'git' /var/log/mail.log
me@alpha:~$ grep 'git' /var/log/mail.log

Where could I find the log?

  • sorry? it works? Doubt it. cron does NOT work with shell expansion so the "~" will not change to /home/$USER/ – Rinzwind Jan 15 at 8:06
1

For see log entry about cron service excute this command on ubuntu 18.04+:

journalctl -u cron.service

In Ubuntu 16.04 see this questions: 16.04: How do I make cron create cron.log and monitor it in real time?

Not the answer you're looking for? Browse other questions tagged or ask your own question.