Linux下基于端口的服务检查脚本
#!/bin/bash #program:Usingtostudythe[if...then...fi]program #dsk2007/10/83:00 #content:Iwillusingthisprogramtoshowyousevices #1.printtheprogram''''sworkinyourscreen echo "Now,the service of your Linux system will be detect!" echo "The www,ftp,ssh,and sendmail pop3 will be detect!" echo "" #2.www www=`netstat -ntlp | awk ''{print $4}'' | grep :80
|