LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-02-2004, 07:13 PM   #1
a_calder
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
Poweroff using the AT command?


I have a server running in a room that is scheduled to have maintenance done tomorrow. All the power will be shut off to that room, and I can't get to it before then.

I want to leave the server running as long as I can, and shut it down just before they switch off the power.

So far, my best guess is to do a poweroff command using AT.

But I don't know how.

Does someone know how to write this?

Thanks,
a_calder
 
Old 07-02-2004, 07:58 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Sure -- suppose that you want to turn the server off at 0800 hours tomorrow. Type

at 08:00

You'll see a [rompt that looks like 'at> ', type shutdown -h now at it, press enter, and then hit CTRL+D.

Probably an easier way to do it is to use the shutdown command's own feature. Shutdown will take a time argument specifying when the shutdown is to occur, or you could specify it in minutes ahead of the present, e.g. shutdown -h +120 will shut the machine down in two hours time. See man shutdown for more details.
 
  


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
poweroff Poszukiwacz Ubuntu 2 08-17-2005 05:10 AM
poweroff not working. navaladi Mandriva 1 01-19-2005 09:36 AM
how to poweroff ?? perdesiz Linux - Laptop and Netbook 5 12-29-2004 03:31 AM
poweroff praveen_2003 Linux - Software 1 07-13-2003 01:31 PM
family access to command poweroff & reboot pixelV Slackware 12 02-27-2003 03:18 PM


All times are GMT -5. The time now is 09:17 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