summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Lutostanski <greg.lutostanski@calxeda.com>2013-10-07 16:16:47 -0500
committerGreg Lutostanski <greg.lutostanski@calxeda.com>2013-10-07 16:17:33 -0500
commitd11c20d6eb6bdfb8c788731a1576ffa2721a884e (patch)
treeac11f5f5c186f5b7d558970d80c12fdaeeaf9a7f
parentb15d1fda9feedb400ded3b8775c7e2b53ced42e3 (diff)
downloadcxmanage-d11c20d6eb6bdfb8c788731a1576ffa2721a884e.tar.gz
CXMAN-230: Allow cxmux to work with tmux v1.7 & install
(remove -l) and package for command install to the PATH.
-rwxr-xr-xscripts/cxmux7
-rw-r--r--setup.py2
2 files changed, 4 insertions, 5 deletions
diff --git a/scripts/cxmux b/scripts/cxmux
index 17150c2..5ab9090 100755
--- a/scripts/cxmux
+++ b/scripts/cxmux
@@ -32,16 +32,15 @@ def main():
for i, ip in enumerate(ips):
if i == 0:
os.system('tmux new-window -n "%s"' % name)
- os.system('tmux send-keys -l "%s %s"' % (command, ip))
+ os.system('tmux send-keys "%s %s"' % (command, ip))
os.system('tmux send-keys Enter')
continue
os.system('tmux split-window -h')
- os.system('tmux send-keys -l "%s %s"' % (command, ip))
+ os.system('tmux send-keys "%s %s"' % (command, ip))
os.system('tmux send-keys Enter')
- os.system('tmux select-layout -t "%s" even-horizontal >/dev/null' % name)
+ os.system('tmux select-layout -t "%s" tiled >/dev/null' % name)
- os.system('tmux select-layout -t "%s" tiled >/dev/null' % name)
if options.sync:
os.system('tmux set-window-option -t "%s" synchronize-panes on >/dev/null' % name)
diff --git a/setup.py b/setup.py
index daba960..c44b83a 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
'cxmanage_api.cli.commands',
'cxmanage_test'
],
- scripts=['scripts/cxmanage', 'scripts/sol_tabs'],
+ scripts=['scripts/cxmanage', 'scripts/sol_tabs', 'scripts/cxmux'],
description='Calxeda Management Utility',
# NOTE: As of right now, the pyipmi version requirement needs to be updated
# at the top of scripts/cxmanage as well.