分页: 1 / 1

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

发表于 : 2007-11-25 9:54
LaoLiulaoliu
#!/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