LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11: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 12:04 PM.
 
Old 10-07-2009, 01:04 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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-08-2009 at 12:58 AM.
 
  


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


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