View Single Post
  #2  
Old 9th November 2011, 12:06
nbhadauria nbhadauria is offline
Member
 
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
Default

use mailq cammand like this..

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