diff options
| author | Devendra | 2014-04-30 00:43:56 +0530 |
|---|---|---|
| committer | Devendra | 2014-04-30 00:43:56 +0530 |
| commit | 8395a9a3922e345608aa1e49b4aa27b9d5927a0d (patch) | |
| tree | ef8da82db44727cfe4306dabee56d418bad169fe | |
| parent | d703c34d918a75a4d5a984143c8fbd5049931b1a (diff) | |
| download | pubnub-python-8395a9a3922e345608aa1e49b4aa27b9d5927a0d.tar.bz2 | |
making tweaks to run on osx
| -rw-r--r-- | python/examples/config | 2 | ||||
| -rw-r--r-- | python/examples/config_osx | 8 | ||||
| -rw-r--r-- | python/examples/start-console.sh | 10 |
3 files changed, 18 insertions, 2 deletions
diff --git a/python/examples/config b/python/examples/config index 1c73645..f35134f 100644 --- a/python/examples/config +++ b/python/examples/config @@ -5,5 +5,5 @@ focus down screen -t console python console.py "set_output_file" split -v focus down -screen -t help vi ./console-help.txt +screen -t help vi -R ./console-help.txt focus up diff --git a/python/examples/config_osx b/python/examples/config_osx new file mode 100644 index 0000000..cdb186c --- /dev/null +++ b/python/examples/config_osx @@ -0,0 +1,8 @@ +sessionname pubnub-console +screen -t help vi -R ./console-help.txt +split +focus down +screen -t output tail -f ./pubnub-console.log +split +focus down +screen -t console python console.py "set_output_file" 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 |
