0

This question already has an answer here:

I wish to ping three local devices, every 5 min, without stopping, from a Raspberry Pi running Raspbian OS. When my Pi powers on, I want that to automatically start.

I saw an old post about it, but not sure where to start.

marked as duplicate by Rui F Ribeiro, user34720, Mr Shunz, telcoM, elbarna Feb 7 at 15:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

As it is described in the answer you mention the best solution is to use cron. This is the record you need to have to run every 5 minutes:

*/5 * * * * /path/to/shell_script

And the shell script itself can be something like:

#!/bin/bash
ping -q -c1 host1
ping -q -c1 host2
ping -q -c1 host3

Not the answer you're looking for? Browse other questions tagged or ask your own question.