How to turn off the system automatically ?
Hi,
I am using Cent Os 5. I want that the system should shutdown automatically at 7:00 pm daily and next day I manually turn on the system.I have google it but the syntax is not clear. I use # crontab -e and write the command 0 19 * * * /sbin/shutdown -h now I does't apply the command but please guide me that what is * * * after 19 Kindly guide me how can I enable this feature? thanks in advance, garden |
Scheduling a "shutdown -h now" via a cron job (for root user) that runs at 7.00 PM daily would do that.
Edit the crontab and add the following line # crontab -e Code:
0 19 * * * /sbin/shutdown -h now |
thanks "vishnu_sreekumar" for the reply. Well what does * * * means ?
If I want to do it at 7:15 PM then how will it write ? thanks for guiding me garden |
Quote:
|
|
Quote:
|
All times are GMT -5. The time now is 06:29 PM. |