#!/bin/sh
if expr "$1" : ".*\.pub" &>/dev/null
then
echo "you are using $1"
else
echo "you ...
利用let计数监控web服务状态
#监控服务状态
ServerMonitor () {
#服务状态监控
timeout=10
fails=0
success=0
while true
do
/usr/bin/wget --timeout=$timeout --tries=1 http://192.168.1.1.101/&nbs...
[root@localhost ~]# cat user.sh
#!/bin/bash
for i in `seq 1 20`
do
pw=`echo $[$RANDOM]|md5sum|cut -c 1-4`
useradd user$i
echo "u...