LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-28-2009, 07:26 PM   #1
fogwatch
LQ Newbie
 
Registered: Feb 2006
Location: Australia
Posts: 15

Rep: Reputation: 0
Change frequency of shutdown's broadcast message?


Hello
I start shutdown -h 22:30 & as part of boot. The problem is that terminals thereafter get contaminated with stupid messages like:
Broadcast message from root (Thu Oct 29 10:30:05 2009):

The system is going DOWN for system halt in 780 minutes!
How do I change the frequency of shutdown's broadcast message?

Regards

Fog_Watch.

# uname -r
2.6.26-gentoo-r3
 
Old 10-28-2009, 07:52 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by fogwatch View Post
Hello
I start shutdown -h 22:30 & as part of boot. The problem is that terminals thereafter get contaminated with stupid messages like:
Broadcast message from root (Thu Oct 29 10:30:05 2009):

The system is going DOWN for system halt in 780 minutes!
How do I change the frequency of shutdown's broadcast message?

Regards

Fog_Watch.

# uname -r
2.6.26-gentoo-r3
Do you know why "shutdown" is printing that message? Because you told it to. Computers are famous for doing exactly what you tell them. Supposedly that's a "good thing".

Code:
$ man shutdown
If you don't want the message, then put the scheduled shutdown in cron instead. Example:

Code:
25 22 * * * root shutdown -h +5
This will cause a warning to be printed at 22:25 and a shutdown at 22:30.

Code:
30 22 * * * root shutdown -h now
This will cause a shutdown at 22:30 with a warning immediately prior.
 
Old 10-29-2009, 02:48 AM   #3
fogwatch
LQ Newbie
 
Registered: Feb 2006
Location: Australia
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lutusp View Post
If you don't want the message, then put the scheduled shutdown in cron instead
Of course. Thanks very much.

Regards

Fog_Watch.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcast message - example linux_newbie79 Linux - Newbie 1 09-02-2009 05:18 AM
How to broadcast a message ? vigneshinbox Programming 1 04-08-2009 09:19 AM
Broadcast a message Fredde87 Linux - Networking 2 04-14-2008 03:51 AM
broadcast message to all santosh_rao99 Linux - Networking 2 07-28-2004 11:41 PM
How do I broadcast a message? miknight Linux - General 3 04-26-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:01 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
Open Source Consulting | Domain Registration