I am attempting to learn how to use cron on the raspberry Pi. I ran the crontab -e
command and added the line:
"
5 * * * * date >> /home/pi/testing_cron
which I believe should run the date command every hour at 5 minutes past the hour
and then append the date to the file /home/pi/testing_cron. This NOT happening.
The documentation I am following says
that the "cron" or "syslog" file in the "/var/log directory will contain the log of
executed cron entries. The "cron" file contains the line "myDevices agent cron job"
while the "syslog" file contains the 2 lines:
Jun 26 20:05:02 raspberrypi CRON[26456]: (root) CMD (/etc/myDevices/crontab.sh)
Jun 26 20:05:02 raspberrypi CRON[26448]: (CRON) info (No MTA installed, discarding output)
which seem to be added to the file every minute.
Can anyone explain why the cronjob is not being run and what
the error message in the "syslog" file means. I'm guessing that the error message in
the second line is causing the problem but since this is my first time using the
cron, it is only a guess. Any help will be greatfully appreciated.