#!/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!
时间: 2024-10-11 02:31:34