LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-30-2007, 10:53 AM   #1
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
logging options


Hi and mtia

I have several machines that I have configured to do time updates once every hour. These machines have no external interfaces and sync time using ntpdate to an internal domain controller. We also have all of roots mail forwarded to an email account, and as you could guess with 10+ servers all updating time once an hour I am now getting flooded with cron time update emails.

So I am asking is there a way for me to turn off logging for specific cron jobs? I have the job configured by a bash script under cron.hourly.

Thanks again.

PS: And can this be done without a reboot? Thanks again.

Last edited by lord-fu; 07-30-2007 at 10:55 AM.
 
Old 07-30-2007, 11:10 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
So I am asking is there a way for me to turn off logging for specific cron jobs? I have the job configured by a bash script under cron.hourly.
Just redirect standard output to /dev/null. e.g.
Code:
ntpdate <options> 1>/dev/null
One comment: if you have an ntp server on your network, you might just run an ntp daemon on each of your computers. It's more accurate than ntpdate and puts out less packets onto the network (at the expense of cpu usage on each computer).
 
Old 07-30-2007, 12:35 PM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Aaaah yes /dev/null.. didn't even think about that. Thanks Berhanie, this way even saves me the reboot. Thanks again.
 
  


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
Logging in and logging out of a server in a script frankie_DJ Linux - Newbie 4 01-27-2007 11:03 PM
CLI -- Logging Out and Logging In StyngerSmash Linux - Newbie 1 09-05-2006 04:23 AM
ssh logging options danimalz Linux - Security 2 02-14-2006 02:35 AM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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