Found 385 messages waiting

Denis Beauchemin Denis.Beauchemin at USherbrooke.ca
Wed Oct 18 15:46:30 IST 2006


Mevershosting.nl a écrit :
> Mike, list,
>
> This is the script i use, i doesnt delete files but renames them. You
> could stop mailscanner first in the script before running this, but i
> found it doesnt really make a differance.
>
> snip
I use the following one-liner in root's crontab to remove files that 
don't have today's date (uses bash syntax on a RHEL 4 system):
19 9 * * * cd /var/spool/mqueue.in/ && /bin/rm -f $(/bin/ls -l 
/var/spool/mqueue.in/[dqt]* 2>/dev/null | /bin/grep -v "$(/bin/date 
'+\%b \%e')"|/bin/awk '{print $NF}') 2>/dev/null

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x62252 F: 819.821.8045


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3595 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20061018/886f1d8d/smime.bin


More information about the MailScanner mailing list