Advertisement
ZxZ666

autorespawn.sh

Dec 17th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.08 KB | None | 0 0
  1. #!/bin/bash
  2. while true
  3. do
  4. if [ ! `pgrep $1` ] ; then
  5. sh $2
  6. fi
  7. sleep 5
  8. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement