aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/examples/config2
-rw-r--r--python/examples/config_osx8
-rw-r--r--python/examples/start-console.sh10
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