Perpetually ping 3 devices from startup [duplicate]












0
















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.










share|improve this 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.























    0
















    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.










    share|improve this 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.





















      0












      0








      0









      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.










      share|improve this question

















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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.
























          1 Answer
          1






          active

          oldest

          votes


















          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





          share|improve this answer






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            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





            share|improve this answer




























              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





              share|improve this answer


























                2












                2








                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





                share|improve this answer













                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






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 6 at 17:13









                Romeo NinovRomeo Ninov

                6,36132028




                6,36132028















                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    第一次世界大戦

                    Touch on Surface Book