1.写一个脚本,执行后,打印一行提示"Please input a number:",要求用户输入数值,然后打印出该数值,然后再次要求用户输入数值.直到用户输入"end"停止. # vi show_var.sh 脚本内容: #!/bin/sh unset var while [ "$var" != "end" ] do echo -n "please input a number: " read var if [ "$var" = "end" ] then break fi echo "var
real server 的vip 启动脚本
#!/bin/bash
#chkconfig: 2345 50 50
#descr iption: real server init scr ipt
VIP=192.168.80.80
case $1 in
start)
echo starting real server ...
ifconfig lo:0 $VIP broadcast $VIP netmask 255.255.255.255 up
echo 1>/proc/sys