mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-01 16:43:08 +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
|