Add sshloop function
This commit is contained in:
parent
3436a54aee
commit
fe13f0095a
1 changed files with 9 additions and 0 deletions
|
@ -136,6 +136,15 @@ fi
|
||||||
alias cdd='cd {{ .deploydir }}'
|
alias cdd='cd {{ .deploydir }}'
|
||||||
export cdd={{ .deploydir }}
|
export cdd={{ .deploydir }}
|
||||||
|
|
||||||
|
sshloop() {
|
||||||
|
while :
|
||||||
|
do
|
||||||
|
ssh $1
|
||||||
|
echo "Reconnection in 5 seconds"
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# COMPLETIONS
|
# COMPLETIONS
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue