aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/start-console.sh
blob: e842427f6d6e841edc39022efdaee88cf7b2a7e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
if ! type "screen" > /dev/null; then
    echo "[ERROR] Screen is not installed. Please install screen to use this utility ."
    exit
fi
rm ./pubnub-console.log
touch ./pubnub-console.log
set PYTHONPATH=../..
screen -X -S pubnub-console quit 2>&1 > /dev/null
OS="`uname`"
case $OS in
  'darwin') 
	screen -c config_osx
    ;;
  *) screen -c config;;
esac