Re: bash script that pings is not working



Anne Moore wrote:
HI All, can anyone help with this bash script? #!/bin/bash

while [ 1 ] do
ping some.ip.com
sleep 60 done

# end of script

It's not really working like I need it to be. I'm trying to add this to
<snip>
One thing you should be aware of is that ping will keep going forever, unless you tell it ping -c 1 (or whatever)).

mark

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: [SLE] emailing myself when a ping command fails via crontab????
    ... but I have a perl script to monitor a webserver. ... First the script tries to ping it's DNS servers, ...
    (SuSE)
  • RE: ICMP (Ping)
    ... script to locate vulnerabilities(example point and case: ... Is it good to allow UDP ping packets? ... Guys again, I am not saying that you disable pings and walk away, job ... 300K and you guys are right, it port scans like a freaking demon. ...
    (Security-Basics)
  • Re: How to run script (sleep360) without delaying bootup
    ... I don't think they would mind Now the script you sent this morning which I don't have in front of me I would think could do the job. ... Maybe you could ping then see if there a command to dealy the time servers and then let them run. ... Pinging a server on the Internet isn't really the problem, ...
    (Fedora)
  • RE: Tools for pen test,
    ... You can use something like fping, but if your heart is set on a script, then ... The problem is that tools like PING ... I was wondering has anyone in here had a shell script that can execute tools ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: Help with Expect
    ... > I need some help with an expect script I'm trying to write. ... If the host responds to pings telnet into it. ... You can ping a host and test whether it was successful from a shell ...
    (freebsd-questions)