We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ec3a3e commit 35ceaefCopy full SHA for 35ceaef
bin/sr3_ssh
@@ -6,6 +6,7 @@ source "${BASH_SOURCE%/*}/sr3_utils"
6
if [[ $# == 0 ]]; then
7
echo '[ERROR] no destination given'
8
echo 'Usage: sr3_ssh destination_server'
9
+ echo ' or sr3_ssh -nN , where N is the line number in the DSH machine list you want to connect to"
10
exit 2
11
fi
12
@@ -37,7 +38,7 @@ if [[ "$1" == "-n"* ]] ; then
37
38
echo "[ERROR] dsh machine list does not exist (${machine_list})."
39
exit 4
40
- hostname="$(head ${1} ${machine_list} | tail -n1)"
41
+ hostname="$(head "${1}" "${machine_list}" | tail -n1)"
42
echo "Host ${1} --> ${hostname}"
43
shift
44
0 commit comments