Perpetually ping 3 devices from startup [duplicate]
This question already has an answer here:
Running an infinite loop on startup
2 answers
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.
cron raspbian ping loop-device
marked as duplicate by Rui F Ribeiro, nwildner, 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.
add a comment |
This question already has an answer here:
Running an infinite loop on startup
2 answers
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.
cron raspbian ping loop-device
marked as duplicate by Rui F Ribeiro, nwildner, 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.
add a comment |
This question already has an answer here:
Running an infinite loop on startup
2 answers
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.
cron raspbian ping loop-device
This question already has an answer here:
Running an infinite loop on startup
2 answers
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.
This question already has an answer here:
Running an infinite loop on startup
2 answers
cron raspbian ping loop-device
cron raspbian ping loop-device
edited Feb 6 at 19:27
Rui F Ribeiro
40.3k1479137
40.3k1479137
asked Feb 6 at 16:57
A75GA75G
11
11
marked as duplicate by Rui F Ribeiro, nwildner, 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.
marked as duplicate by Rui F Ribeiro, nwildner, 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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
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
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
answered Feb 6 at 17:13
Romeo NinovRomeo Ninov
6,36132028
6,36132028
add a comment |
add a comment |