i need to write a linux script that pings a host in a timed intervall and doesnt output the standard ping command stuff.
like:
ping -i 10 google.com
Output1: google.com POSITIVE
or
Output2: google.com NEGATIVE
How can i achieve that it doesnt show the Ping Output and transform that into the Output in the examples?
Thought about using the Returncode if 0 then its positive else negative.
Thanks for help !