3 # Check if already running
5 PROCS
=`ps -ea -f | grep /share/cadence/src/catarina.py | grep python`
7 if [ x
"$PROCS" != x
"" ]; then
10 PROC
=`echo "$PROCS" | head -n 1`
13 PID
=`echo "$PROC" | awk '{printf$2}'`
15 # Last check, just to make sure
16 if [ x
"$PID" != x
"" ]; then
18 # Tell user about this
19 echo "Cadence already started, showing GUI now..."
21 # Send SIGUSR2, shows the GUI
32 if [ -f /usr
/bin
/python2
]; then
33 PYTHON
=/usr
/bin
/python2
38 # We only got here if not running yet
39 INSTALL_PREFIX
="X-PREFIX-X"
40 exec $PYTHON $INSTALL_PREFIX/share
/cadence
/src
/catarina.py
"$@"