a command to reboot a *nix server.
Reboot a server in 5 minutes with a message
shutdown -r +5 "Please announce in #dev if you would like to cancel this reboot"
Power off a server in 5 minutes
shutdown -P +5
Cancel a scheduled shutdown
Power off a machine in 5 minutes
shutdown -h +5 "Shutting down in 5 minutes"
echo "Shutting down in 5 minutes" | shutdown -h $(date -v +5M +%y%m%d%H%M) -
Using the above shutdown syntax, you can use
-s for sleep,
-r for reboot, and others. See
man date for more.