[问题]7.10中有错误的shell script

sh/bash/dash/ksh/zsh等Shell脚本
回复
LaoLiulaoliu
帖子: 131
注册时间: 2006-10-25 17:50
来自: 南京
送出感谢: 0
接收感谢: 0
联系:

[问题]7.10中有错误的shell script

#1

帖子 LaoLiulaoliu » 2007-11-25 9:54

#!/bin/bash
echo "Now, the services of your Linux system will be detect!"
echo -e "The www, ftp, ssh, and mail will be detect! \n"


testing=`netstat -tuln | grep ":80 "`
if [ "$testing" != "" ]; then
echo "WWW is running in your system."
fi
回复

回到 “Shell脚本”