The shutdown can be accomplished, as Chacalinc says, through the use of the [tt]shutdown[/tt] command.
However, once the machine is shut down, cron won't be running so it can't restart the machine. If your machine can be configured to boot at poweron, you might look at some kind of power outlet timer. Have it shut off power at 7:30 pm (to make sure cron has had time to do what it needs) and then power up the machine the next morning.
You can cron to shutoff the NIC using ifdn and then ifup at the desired time. This has the effect of making the box inaccessible to all users but those at the local console. If someone has local console, they can power it up any time they like anyways.
BTW, RedHat uses "shutdown -h now" to shutdown for a halt and "now". A variant on a theme.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.