Skip to content

Commit

Permalink
Updates readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsummersl committed Feb 17, 2019
1 parent b756c40 commit 145bcdb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ Main help:
--command COMMAND, -c COMMAND
Command to execute when connecting to a remote host
--input INPUT, -i INPUT
Read list of hosts from input file when provided,
otherwise from STDIN.
Read list of hosts from input file when provided.
--script SCRIPT, -s SCRIPT
Execute commands in local file remotely
Execute commands in local file remotely (executes over
--command option)
--tmux-panes PANES, -p PANES
Max tmux panes per window (default: 6)
--tmux-no-sync, -S Do not run tmux's set-option synchronize-panes
Expand Down Expand Up @@ -207,3 +207,17 @@ SSH Docker help:
shell is not provided.
--approximate, -a Include any docker container names that only partially
match hosts.

Notes
-----

`--script` and `--command` will make multiple connections over SSH (one can send
keys over tmux, but not easily track success of without capturing the result of
$?, so shell commands have been string together with &&). Maybe I'll fix that
some day, but in the meantime, to limit the number of connections I suggest
turning on SSH ControlMaster settings by adding the following to your
.ssh/config file:

ControlMaster auto
ControlPersist 60s
ControlPath /tmp/ssh-%h-%p-%r
2 changes: 1 addition & 1 deletion scripts/intmux.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main():
help="Command to execute when connecting to a remote host")
parser.add_argument(
'--input', '-i', type=argparse.FileType('r'), default=None,
help="Read list of hosts from input file when provided, otherwise from STDIN.")
help="Read list of hosts from input file when provided.")
parser.add_argument(
'--script', '-s', default="",
help="Execute commands in local file remotely (executes over --command option)")
Expand Down

0 comments on commit 145bcdb

Please sign in to comment.