<div dir="ltr">Hi,<br><br>$ netstat -an|grep 12001|wc -l<br>3<br>$ netstat -an|grep 12001|cut -c69-|sort|uniq -c<br>      2 ESTABLISHED<br>      1 LISTEN<br>alert will be, if command1 returns more than 200, than send the output of command2.<br>
<br>Can somebody here can point me to any bash script example. I would develop on it<br><br>Thanks and Regards<br><br>Kaushal<br></div>