Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-02-2004, 08:13 PM   #1
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?

Old 07-02-2004, 08:58 PM   #2
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.


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

All times are GMT -5. The time now is 05:53 AM.

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