Thank you so much for the updated code. I'll have to try it out when I get home.
Just curious, would this work in the code?
I'm not sure which prog language the bash script uses.
Also, would it be possible to have the bounce prog create a log of the time and date for each time there is a failed ping attempt?
Yean, $((5*60)) to do maths, not just 5*60
And in .xprofile:
/path/to/script >> ~/bounce-log.txt &
will make it append to the end of bounce-log.txt while it's running.
You'll see all the successful pings in there too, so comment that line out if you don't want them.