とあるjavaのプロセスが終わるのを待って別のjavaのプロセスを実行したいときとかに。
for i in 1
do
printf "Waiting for other process"
while $(ps aux | grep \[j\]ava -q)
do
printf "."
sleep 1
done
printf "done, Start for %d .\n" "${i}"
java -version
sleep 10
done
Go to list of users who liked
More than 5 years have passed since last update.
とあるjavaのプロセスが終わるのを待って別のjavaのプロセスを実行したいときとかに。
for i in 1
do
printf "Waiting for other process"
while $(ps aux | grep \[j\]ava -q)
do
printf "."
sleep 1
done
printf "done, Start for %d .\n" "${i}"
java -version
sleep 10
done
Register as a new user and use Qiita more conveniently
Go to list of users who liked