Problem phenomenon:
A large number of files exist in the/var/spool/clientmqueue/directory in the Linux operating system.
Cause Analysis:
The system has a user to open cron, and cron execution of the program has output content, the output will be sent to the user cron mail, and SendMail did not start so that the resulting files;
Workaround:
1, the crontab inside the command after adding >/dev/null 2>&1
2, Knowledge points:
2>: redirect error.
2>&1: Redirect the error to where the output is to be sent. The result of the execution of the above command is redirected to the/dev/null, that is, discard, and also discard the resulting error.
3, the specific code:
(1), # Crontab-u Cvsroot-L on on* * * */opt/bak/Backup on Geneva* * * */opt/bak/Backup2 (2)、#VI/opt/bak/backup#!/bin/SHCD/Getfacl-R repository >/opt/bak/Backup.acl (3)、#VI/opt/bak/backup2#!/bin/SHWeek=`Date+%W`TarZcvfp/opt/bak/cvs$week/cvs.Tar. gz/repository >/dev/NULL 2>&1
4. Clear the files under the/var/spool/clientmqueue/directory:
# cd/var/spool/rm -RF *
If the file is too large and takes up too much space, use the above command to remove the slow, then execute the following command:
# cd/var/spool/lsxargsRM
Too many file processing under/var/spool/clientmqueue