Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. [ "$1" == "--frest_start" ] && rm statusfile
  2.  
  3. touch statusfile
  4. read status < statusfile
  5. [ "$status" == "" ] && status=0
  6.  
  7. case $status in
  8. 0) ./script1; echo 1 > statusfile ;&
  9. 1) ./script2; echo 2 > statusfile ;&
  10. 2) ./script3; echo 3 > statusfile ;&
  11.  
  12. # ....... & so on till
  13.  
  14. 23) ./script24; echo 24 > statusfile ;;
  15.  
  16. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement