Advertisement
ZxZ666

autorespawn.sh

Dec 17th, 2013
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. while true
  3. do
  4. if [ ! `pgrep $1` ] ; then
  5. sh $2
  6. fi
  7. sleep 5
  8. done
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement