Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ "$1" == "--frest_start" ] && rm statusfile
- touch statusfile
- read status < statusfile
- [ "$status" == "" ] && status=0
- case $status in
- 0) ./script1; echo 1 > statusfile ;&
- 1) ./script2; echo 2 > statusfile ;&
- 2) ./script3; echo 3 > statusfile ;&
- # ....... & so on till
- 23) ./script24; echo 24 > statusfile ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement