1

Script using Wait

view story
linux-howto

http://www.unix.com – Hi, written a script which uses wait as follows Code: Main.sh #!/usr/bin/ksh nohup scrpit1 1 & pid_1=$! nohup scrpit1 2 & pid_2=$! wait $pid_1 wait $pid_2 nohup scrpit1 3 & pid_1=$! nohup scrpit1 4 & pid_2=$! wait $pid_1 wait $pid_2 So like that i have more 30 nohups with wait and running 2 inputs simultaneously. But i want to run the nohup based on number of wait's in the loop Example in the above main.sh, when i execute the script I see two script will run simultaneously. But both should complete to run next set of Nohups. Inst (HowTos)