Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Problem with crontab reboot

    Posted on

    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.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat