Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Bash by registered user uwe ( 13 years ago )
#!/bin/bash
# config
basedir="$HOME/CouchPotato"
execfile="CouchPotato.py"
# pre
pid=$(pgrep -f $execfile)
cd "$basedir"
# kill
kill $pid
c=0
while ps -p $pid >/dev/null; do
if [ $[c++] -eq 6 ]; then
break
fi
sleep 5
done
if ps -p $pid; then
kill -9 $pid
fi
sleep 5
git pull
python $execfile </dev/null >/dev/null 2>/dev/null &
disown
Revise this Paste