LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How To Stop Things Being Written To Clientmqueue (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-stop-things-being-written-to-clientmqueue-760334/)

onesikgypo 10-07-2009 10:37 AM

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.

bathory 10-07-2009 12:04 PM

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


All times are GMT -5. The time now is 03:48 PM.