I want to create a BASH script to run a command after verifying a host is alive. I was thinking of using the fping
command, but I can't figure out how to create a conditional loop to proceed with running the command I need to run only if the host I am fping
ing is up. If I run the command before the host is available, I need to restart the whole machine...
Probably something like this:
Alternatively, this may make sense