aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/start-console.sh
blob: 128a20e56b31810f5236c379b843b1ad3cf44ad1 (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
export PYTHONPATH=../..
screen -X -S pubnub-console quit 2>&1 > /dev/null
OS="`uname`"
case $OS in
  [dD]'arwin')
	screen -c config_osx
    ;;
  *) screen -c config ;;
esac