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