Skip to content

Commit a1ee0c4

Browse files
committed
changed program name to runoverssh
1 parent 6dbe906 commit a1ee0c4

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Bugs or Requests: yuriescl@gmail.com
66

77
#### Usage:
88
```
9-
$ run-over-ssh [OPTIONS] USERNAME COMMAND HOSTS...
9+
$ runoverssh [OPTIONS] USERNAME COMMAND HOSTS...
1010
```
1111

1212
#### Default behavior:
@@ -27,15 +27,15 @@ $ run-over-ssh [OPTIONS] USERNAME COMMAND HOSTS...
2727
-b, --bashflags [flags] set custom bash flags
2828
default: '-l'
2929
30-
-l, --log save ssh output (default: run-over-ssh.log) (overwrite)
30+
-l, --log save ssh output (default: runoverssh.log) (overwrite)
3131
--logfile [file] save ssh output to a custom file (overwrite)
3232
-q, --quiet disable ssh screen output
3333
3434
```
3535

3636
#### Examples
3737
```
38-
$ run-over-ssh root "systemctl restart apache2" webserver webserver2
38+
$ runoverssh root "systemctl restart apache2" webserver webserver2
3939
Please set root's password for each host:
4040
4141
root@webserver password:
@@ -45,23 +45,23 @@ Connecting as root@webserver...
4545
Connecting as root@webserver2...
4646
```
4747
```
48-
$ run-over-ssh --log --quiet --globalpw root "reboot" host1 host2 host3
48+
$ runoverssh --log --quiet --globalpw root "reboot" host1 host2 host3
4949
root's password (used for all connections):
5050
5151
Connecting as root@host1...
5252
Connecting as root@host2...
5353
Connecting as root@host3...
5454
```
5555
```
56-
$ run-over-ssh -q -l -g -r puppet-nodes root "puppet agent -t"
56+
$ runoverssh -q -l -g -r puppet-nodes root "puppet agent -t"
5757
root's password (used for all connections):
5858
5959
Connecting as root@node1...
6060
Connecting as root@node2...
6161
Connecting as root@node3...
6262
```
6363
```
64-
$ run-over-ssh remoteuser "cd git-project && git status" devmachine
64+
$ runoverssh remoteuser "cd git-project && git status" devmachine
6565
Please set remoteuser's password for each host:
6666
6767
remoteuser@devmachine password:
@@ -72,7 +72,7 @@ Your branch is up-to-date with 'origin/master'.
7272
nothing to commit, working directory clean
7373
```
7474
```
75-
$ run-over-ssh -g --script backup.sh --hostsfile hostlist remoteuser
75+
$ runoverssh -g --script backup.sh --hostsfile hostlist remoteuser
7676
remoteuser's password (used for all connections):
7777
7878
Connecting as remoteuser@host1...

run-over-ssh renamed to runoverssh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# This program runs a BASH command/script over SSH in a remote host or list of hosts
4-
# Copyright (C) 2017 Yuri Escalianti (https://github.com/yuriescl/run-over-ssh)
4+
# Copyright (C) 2017 Yuri Escalianti (https://github.com/yuriescl/runoverssh)
55
#
66
# This program is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -47,13 +47,13 @@ function print_help {
4747
echo ""
4848
echo "Examples:"
4949
echo ""
50-
echo " run-over-ssh root 'systemctl restart apache2' server1 server2"
50+
echo " runoverssh root 'systemctl restart apache2' server1 server2"
5151
echo ""
52-
echo " run-over-ssh --log --quiet --globalpw root 'reboot' host1 host2 host3"
52+
echo " runoverssh --log --quiet --globalpw root 'reboot' host1 host2 host3"
5353
echo ""
54-
echo " run-over-ssh remoteuser 'cd git-project && git status' devmachine"
54+
echo " runoverssh remoteuser 'cd git-project && git status' devmachine"
5555
echo ""
56-
echo " run-over-ssh --script myscript.sh --hostsfile hostlist remoteuser"
56+
echo " runoverssh --script myscript.sh --hostsfile hostlist remoteuser"
5757
echo ""
5858
echo "Bugs or Requests: yuriescl@gmail.com"
5959
}

0 commit comments

Comments
 (0)