RE: Bash script

From: Kimble Steve (Steve.Kimble@icl.com)
Date: 08/31/01


Message-ID: <108B5D797DD0D411A0BF0090274F599F2FB87E@WWMESSD054>
From: Kimble Steve <Steve.Kimble@icl.com>
To: "'Sousa Ferreira'" <sousaferreira@netcabo.pt>, Security Basics <security-basics@securityfocus.com>
Subject: RE: Bash script
Date: Fri, 31 Aug 2001 12:00:35 +0100

If you use "ping (host) (number of seconds to timeout if no response)",
then the return code will be non-zero if the ping timed out, otherwise it
will, of course, be zero to indicate the ping was successful.

Regards, Steve.

>-----Original Message-----
>From: Sousa Ferreira [mailto:sousaferreira@netcabo.pt]
>Sent: 30 August 2001 17:05
>To: Security Basics
>Subject: Bash script

<snip>

Long time reader, first time asker here!

Just wondering if someone could help with a "simple" script in $bash
i have to make.
I need a script thatīs pings a certain ip, reads the reply and ... if
there is any reply, it reschedules itself to ping the ip again in
lets say 60 secs.
Otherwise it starts a daemon, firewall, backup smb daemon, etc. .

My doubt is on how to get the script to read the ping awnser
(afirmative or not).

<snip>



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: Bash script
    ... Subject: Bash script ... This is the code fragment I use to check ping. ... PGP KeyID: 0xB7723B21 ...
    (Security-Basics)
  • 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: Bash script
    ... Subject: Bash script ... > Otherwise it starts a daemon, firewall, backup smb daemon, etc.. ... > My doubt is on how to get the script to read the ping awnser ...
    (Security-Basics)
  • RE: Bash script
    ... bash-2.04$ ping www.yahoo.com ... packets transmitted, 1 packets received, 0% packet loss ... > Subject: Bash script ...
    (Security-Basics)