View Single Post
Old 9th November 2011, 13:06
nbhadauria nbhadauria is offline
Join Date: Aug 2010
Location: New Delhi, India
Posts: 79
Thanks: 1
Thanked 13 Times in 13 Posts
Send a message via Skype™ to nbhadauria

use mailq cammand like this..

QU=`mailq |grep 'Total requests'|sed 's/Total requests: //'`
if [ "$QU" -ne "0" ]
Reply With Quote