For some reason (programmers know), you need to do something with your company's computer at the time of not working. So the company computer rarely shuts down. But the computer will become very stuck in the absence of many days after the shutdown. So now the first thing to go to the company every morning is to restart the computer first. Manual restart, too incompatible with the programmer's style. So, I think of the command line timed shutdown restart.
The command is very simple:
Shutdown:
sudo shutdown-h yymmddhhmm
Restart :
sudo shutdown-r yymmddhhmm
hibernation:
sudo shutdown-s yymmddhhmm
where yymmddhhmm refers to a particular time.
For example, I have to restart the computer at 22:30 this (March 4, 2015) evening, so the command should be:
sudo shutdown-r 1503042230
you need an administrator right here, enter your computer's password, and then enter it.
Mac timer shutdown, restart, hibernate command line