mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-29 04:03: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
|