LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12:44 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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, 01: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, 02:36 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

Code:
echo halt|at 7:00am tomorrow


Cheers,
Tink
 
  


Reply



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 12:03 AM
Automate Shutdown At Specific Time RemusX2 Linux - General 5 06-27-2006 09:52 AM
System reboots after shutdown after some time cccc828 Slackware 4 05-15-2005 04:16 AM
Getting ready to shutdown Win XP for the last time kersten78 Slackware 14 12-13-2004 06:29 PM
Auto Shutdown at time Crazy Banana Linux - General 3 11-26-2002 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 PM.

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
Open Source Consulting | Domain Registration