LinuxQuestions.org
Review your favorite Linux distribution.
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-07-2009, 10:37 AM   #1
onesikgypo
Member
 
Registered: Jun 2008
Posts: 56

Rep: Reputation: 15
How To Stop Things Being Written To Clientmqueue


Hi,

I turned off my sendmail server - however, i keep getting files in my /var/spool/clientmqueue dir (whcih as far as i can tell is related to sendmail).

Can anyone please advise how i can stop these files being written, since they take up a considerable ammoutn of space.

Thankyou.

Edit:

Note - most of these files are a result of various script outputs, where the scripts are run by crond.

Last edited by onesikgypo; 10-07-2009 at 11:04 AM.
 
Old 10-07-2009, 12:04 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should edit your crontab to send the various jobs output to /dev/null.
Code:
30 4 * * * /some/command > /dev/null 2>&1
The above entry will send everything (stdout and stderr) to /dev/null, so you will not be informed for errors
Code:
30 4 * * * /some/command 1 > /dev/null
The above will send only stdout to /dev/null, so will will be informed for errors.

Regards

Last edited by bathory; 10-07-2009 at 11:58 PM.
 
  


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
How to stop things like these divyashree Linux - Security 1 07-05-2009 12:17 AM
All things networking stop working remyforbes777 Linux - General 2 04-09-2009 02:02 PM
LXer: Stop Googling things, says Google LXer Syndicated Linux News 0 08-15-2006 06:21 PM
stop things from starting with system? alyks SUSE / openSUSE 2 10-18-2004 01:52 AM
will old monitor stop graphics from working, slow it down, make things blurrie? toastermaker Linux - Hardware 1 03-08-2004 10:43 PM

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

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