Skip to content

Commit

Permalink
updated program name
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriescl committed Dec 7, 2019
1 parent 7a68783 commit f60004a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 30 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.0.2:

- Updated program description

3.0.1:

- Updated documentation
Expand Down
52 changes: 25 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Run Over SSH

Run a shell command or script over ssh in one or more hosts.
Run shell commands over ssh.

### Installation

Expand All @@ -16,7 +16,30 @@ sudo curl -L "https://raw.githubusercontent.com/yuriescl/runoverssh/master/runov

### Usage
```
$ runoverssh [OPTIONS] USERNAME COMMAND HOSTS...
runoverssh [OPTIONS] USERNAME COMMAND HOSTS...
Options:
-g, --globalpw Prompt a global password for all connections
-s, --script FILE Read commands from a script file, disables
the default COMMAND argument
-r, --hostsfile FILE Read the list of hosts from a file (one host
per line), disables the default HOSTS argument
-a, --args ARGS Arguments (in a single string) to be passed to
the script file.
-q, --quiet Disable all screen output, except for password
prompts. If logfile is set, output is written
there
-v, --verbose Print verbose messages
--shell SHELL Remote shell to be used. Supported values:
sh, bash
default: bash
--shellflags FLAGS Remote shell flags
default: ''
--sshflags FLAGS Local SSH flags
default: -o ConnectTimeout=5
-o StrictHostKeyChecking=no
-o UserKnownHostsFile=/dev/null
--logfile FILE Append SSH output to a file
```

### Default behavior
Expand All @@ -30,31 +53,6 @@ A global password can be used for all SSH connections.
It requires `sshpass` to be installed.
See the `-g` flag.

### Options:
```
-g, --globalpw Prompt a global password for all connections
-s, --script FILE Read commands from a script file, disables
the default COMMAND argument
-r, --hostsfile FILE Read the list of hosts from a file (one host
per line), disables the default HOSTS argument
-a, --args ARGS Arguments (in a single string) to be passed to
the script file.
-q, --quiet Disable all screen output, except for password
prompts. If logfile is set, output is written
there
-v, --verbose Print verbose messages
--shell SHELL Remote shell to be used. Supported values:
sh, bash
default: bash
--shellflags FLAGS Remote shell flags
default: ''
--sshflags FLAGS Local SSH flags
default: -o ConnectTimeout=5
-o StrictHostKeyChecking=no
-o UserKnownHostsFile=/dev/null
--logfile FILE Append SSH output to a file
```

### Examples
Restart Apache webserver in two hosts
```
Expand Down
1 change: 0 additions & 1 deletion runoverssh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ script_alias=`basename -s .sh "$0"`
# Print help
print_help() {
error "Usage: $script_name [OPTIONS] USERNAME COMMAND HOSTS..."
error "Runs a shell command/script over ssh in one or more hosts."
error "Options:"
error ""
error " -g, --globalpw Prompt a global password for all connections"
Expand Down
4 changes: 2 additions & 2 deletions runoverssh.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.TH RUNOVERSSH 1
.SH NAME
runoverssh \- Run a shell command or script over ssh in one or more hosts
runoverssh \- Run shell commands over ssh
.SH SYNOPSIS
.B runoverssh
[\fBOPTIONS\fR]
Expand All @@ -9,7 +9,7 @@ COMMAND
HOSTS...
.SH DESCRIPTION
.B runoverssh
Run a shell command or script over ssh in one or more hosts
Run shell commands over ssh
.SH OPTIONS
.TP
.BR \-g ", " \-\-globalpw
Expand Down

0 comments on commit f60004a

Please sign in to comment.