crontabを以下のように編集しました。
■/etc/crontab
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
10 20 * * 1 tar -zcf /var/backups/user.tgz /home/user/
42 21 * * * root /var/www/html/myscript.sh
ですが、21:42になってもmyscript.shが実行されません。
#sh myscript.shを手で直接実行はできております。
/var/log/syslogにはsessionCleanみたいなログしかありませんでした。なので、上記crontabの設定が反映されてないと思うのですが、どう改変すればよろしいでしょうか。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/05/12 06:44