Que Length Check
Steve Evans
sevans at FOUNDATION.SDSU.EDU
Tue Jan 29 22:34:56 GMT 2002
I wrote a script that looks like the following according to Julian's instructions. When I run it tells me there are to many arguments. Any ideas?
Steve
#!/bin/sh
#Define this to be your maximum allowed mail queue length
MAXLEN=20
LSLEN='cd /var/spool/mqueue.in && ls | wc -l'
QUEUELEN='find /var/spool/mqueue.in -name q* | wc -l'
if [ $QUEUELEN -gt $MAXLEN ]; then
touch /var/spool/mqueue.in-file
fi
More information about the MailScanner
mailing list