LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2007, 01:44 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
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 ?
 
Old 10-25-2007, 02:14 PM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

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

Code:
shutdown -hP -t 30 1440 Log out
 
Old 10-25-2007, 03:36 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Another option would be to use 'at'.

Code:
echo halt|at 7:00am tomorrow


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux auto shutdown on time sunlinux Linux - General 4 08-09-2007 01:03 AM
Automate Shutdown At Specific Time RemusX2 Linux - General 5 06-27-2006 10:52 AM
System reboots after shutdown after some time cccc828 Slackware 4 05-15-2005 05:16 AM
Getting ready to shutdown Win XP for the last time kersten78 Slackware 14 12-13-2004 07:29 PM
Auto Shutdown at time Crazy Banana Linux - General 3 11-26-2002 08:08 AM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration