Problem with crontab reboot
Hi,
I try to schedule a reboot of one server with crond and this command line :
00 12 12 * * [ "$(date '+\%u')" -eq 0 ] && /sbin/reboot
It works on some server but not in this one.
I see that cron execute the command line , but the serveur doesn't reboot.
grep boot cron
Jun 12 12:00:02 lxsar37 CROND[7307]: (root) CMD ([ "$(date '+%u')" -eq 0 ] && /sbin/reboot)
who -b
d▒marrage syst▒me 2016-03-22 05:35
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
#
Does anyone can help me?
Best regards.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
