> This is what I have now but it is not working I thik the problem is > where I am trying to tell the script if it is greater than 15 send an > email saying amavis down > > > #!/bin/bash > # Start script > if /utilities/checkque > "0" then cat /amavis.not.alive | mail > [email]elemint@hotpop.com[/email] > #fi > # End script > > > cat /amavis.not.alive > Amavis is not accepting connections > > cat /checkque > postqueue -p |grep ^[0-9] |wc -l Advanced Bash-Scripting Guide http://www.tldp.org/LDP/abs/html/index.html --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss