标签:
#!/bin/bash
#/usr/local/xxx/bin/xxxx.sh start
#/usr/local/xxx/bin/startup.sh
for i in `find /server -name start.sh`
do
fadir=`dirname $i` //读取父目录
cd $fadir
echo > nohup.out
./start.sh &
sleep 2
echo "start success........!"
done
END!
标签:
原文地址:http://www.cnblogs.com/changbo/p/5494013.html