Advertisement
Algabe

algabe-bot.sh

Sep 5th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. : ${CONTROL:=0}
  4.  
  5.  while [ $CONTROL=0 ] ; do
  6.  
  7.   ps aux | grep algabe-bot.py | grep -v grep >> /dev/null
  8.   if [ $? -ne 0 ]; then
  9.    /home/algabe/Guard/./algabe-bot.py
  10.   else
  11.     echo "" >> /dev/null
  12.   fi
  13.  sleep 3
  14.  done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement