mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
8 lines
105 B
Plaintext
8 lines
105 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
if ping -c 1 "$1"; then
|
||
|
autossh -M 0 "$1"
|
||
|
else
|
||
|
echo "Host not reachable"
|
||
|
fi
|