Thuban
2017-04-13 55a0ea30afb18ca92538528c23d675d67ef98796
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# script to launch vilain with the latest python3 version avaiable
 
PYTHONVERSION=$(ls -l /usr/local/bin/python3.* |grep -Eo "3\.[0-9]" |tail -n1)
PYTHON="/usr/local/bin/python$PYTHONVERSION"
if [ -x $PYTHON ]; then
    $PYTHON /usr/local/sbin/vilain.py >/dev/null 2>&1 &
else
    echo "Error : no python3 executable found"
fi
exit