yeputons

Untitled

May 13th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. tracks=8
  2.  
  3. while true; do
  4. for ((i=0;$i<$tracks;i++)); do
  5.   i=suzuka
  6.   while true; do
  7.     cnt=$(ps -A | grep python | wc -l)
  8.     if (( $cnt == 0 )); then
  9.       for ((j=0;$j<6;j++)); do
  10.         ./test_on.sh $i $j >/dev/null 2>&1 &
  11.         sleep 3
  12.       done
  13.       exit
  14.       break
  15.     fi
  16.     sleep 1
  17.   done
  18. done
  19. done
Add Comment
Please, Sign In to add comment