qmailshow.sh

#!/bin/sh
#show qmail queue

MESS=`find /var/qmail/queue/mess -type f | wc | awk '{print $1}'`
INFO=`find /var/qmail/queue/info -type f | wc | awk '{print $1}'`
LOCAL=`find /var/qmail/queue/local -type f | wc | awk '{print $1}'`
REMOTE=`find /var/qmail/queue/remote -type f | wc | awk '{print $1}'`
BOUNCE=`find /var/qmail/queue/bounce -type f | wc | awk '{print $1}'`

echo ""
echo "Current Qmail Queue:"
echo "--------------------"
echo "mess:             "$MESS
echo "info:             "$INFO
echo "local:            "$LOCAL
echo "remote:           "$REMOTE
echo "bounce:           "$BOUNCE
echo "--------------------"
date
echo ""

One Reply to “qmailshow.sh”

发表评论

电子邮件地址不会被公开。 必填项已用*标注