Find the answer to your Linux question:
Results 1 to 2 of 2
I am looking to create a script that will ping a list of IP addresses every 15 minutes. Does anyone have any ideas of a script I could use? What ...
  1. #1
    Linux User DOllaBillz217's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    263

    Script to ping multiple IP's

    I am looking to create a script that will ping a list of IP addresses every 15 minutes. Does anyone have any ideas of a script I could use? What would be ideal is putting it in a cron job and doing it that way.
    $Billz

    How much wood would a wood chuck chuck if a wood chuck could chuck wood? None they eat plants!

    Dell Optiplex GX260, LTSP Diskless Workstation, Fedora Core 6

  2. #2
    Linux Newbie
    Join Date
    Feb 2009
    Posts
    100
    You could put a list of addresses in a seperate file eg. ips.list

    for i in $(cat ips.list); do
    ping ${i}
    done

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...