From 8395a9a3922e345608aa1e49b4aa27b9d5927a0d Mon Sep 17 00:00:00 2001 From: Devendra Date: Wed, 30 Apr 2014 00:43:56 +0530 Subject: making tweaks to run on osx --- python/examples/start-console.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'python/examples/start-console.sh') diff --git a/python/examples/start-console.sh b/python/examples/start-console.sh index df4fd6e..e842427 100644 --- a/python/examples/start-console.sh +++ b/python/examples/start-console.sh @@ -1,3 +1,4 @@ +#!/bin/bash if ! type "screen" > /dev/null; then echo "[ERROR] Screen is not installed. Please install screen to use this utility ." exit @@ -5,4 +6,11 @@ fi rm ./pubnub-console.log touch ./pubnub-console.log set PYTHONPATH=../.. -screen -c config +screen -X -S pubnub-console quit 2>&1 > /dev/null +OS="`uname`" +case $OS in + 'darwin') + screen -c config_osx + ;; + *) screen -c config;; +esac -- cgit v1.2.3