[email protected] webmail now available. Want one? Go here.
Windows getting boring or just want to try something Open Source for your next Desktop Environment?! Go Zorin OS.
Paste
Pasted as Bash by registered user uwe ( 10 years ago )
#!/bin/bash
# config
basedir="$HOME/Sick-Beard"
execfile="SickBeard.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 -d
Revise this Paste