Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while true
- do
- if [ ! `pgrep $1` ] ; then
- sh $2
- fi
- sleep 5
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement