sudo crontab -l
35 4 * * * /www/server/cron/862a175164f95c3b199446c810b275b8 >> /www/server/cron/862a175164f95c3b199446c810b275b8.log 2>&1
20 3 * * * /www/server/cron/92347b5087d46bec4631da2540937198 >> /www/server/cron/92347b5087d46bec4631da2540937198.log 2>&1
10 0 * * * /www/server/cron/3ab48c27ec99cb9787749c362afae517 >> /www/server/cron/3ab48c27ec99cb9787749c362afae517.log 2>&1
*/10 * * * * /www/server/cron/dd2d9b9ac36a831833113ecc1552be6a >> /www/server/cron/dd2d9b9ac36a831833113ecc1552be6a.log 2>&1
* * * /www/server/cron/543cdca0136ae7f4b14e9c10f39e03cd >> /www/server/cron/543cdca0136ae7f4b14e9c10f39e03cd.log 2>&1
*/1 * * * * /www/server/cron/b532b1212fa1a4e54528f5cd6578e64f >> /www/server/cron/b532b1212fa1a4e54528f5cd6578e64f.log 2>&1
Script:
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo "Hello, world!"
echo "----------------------------------------------------------------------------"
endDate=`date +"%Y-%m-%d %H:%M:%S"`
echo "★[$endDate] Successful"
echo "----------------------------------------------------------------------------"
/var/log/cron.log
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: message repeated 2 times: [ Network configuration changed, trying to establish connection.]
Jul 3 12:32:37 rewserver cron[869]: (CRON) INFO (pidfile fd = 3)
Jul 3 12:32:37 rewserver cron[869]: Error: bad month; while reading crontab for user root
Jul 3 12:32:37 rewserver cron[869]: (root) ERROR (Syntax error, this crontab file will be ignored)
Jul 3 12:32:37 rewserver cron[869]: (CRON) INFO (Running @reboot jobs)
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:32:37 rewserver systemd-timesyncd[747]: Network configuration changed, trying to establish connection.
Jul 3 12:33:08 rewserver systemd-timesyncd[747]: Initial synchronization to time server 185.125.190.56:123 (ntp.ubuntu.com).
Jul 3 12:36:18 rewserver crontab[2633]: (root) LIST (root)
Jul 3 12:40:01 rewserver CRON[2678]: (smmsp) CMD (test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/libexec/sendmail/sendmail && /usr/share/sendmail/sendmail cron-msp)