LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shutdown server in a particular time (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-server-in-a-particular-time-594568/)

shipon_97 10-25-2007 12:44 PM

shutdown server in a particular time
 
Friends ,

Suppose I have to start my Linux server at 7 am , Now If i shutdown it at 10 pm or 7 am in next day (suppose next day is oct26'2007), Then what will be the shutdown command ?

The_JinJ 10-25-2007 01:14 PM

This will shutdown in 24 hours with a warning 30 seconds before

Code:

shutdown -hP -t 30 1440 Log out

Tinkster 10-25-2007 02:36 PM

Another option would be to use 'at'.

Code:

echo halt|at 7:00am tomorrow


Cheers,
Tink


All times are GMT -5. The time now is 03:33 AM.