Bash script

From: Sousa Ferreira (sousaferreira@netcabo.pt)
Date: 08/30/01


From: "Sousa Ferreira" <sousaferreira@netcabo.pt>
To: "Security Basics" <security-basics@securityfocus.com>
Subject: Bash script
Date: Thu, 30 Aug 2001 17:04:43 +0100
Message-ID: <IEEKKDAEMJBHKFOCOKGICEAICCAA.sousaferreira@netcabo.pt>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi ...

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).

The main interest in this is that if the primary firewall fails (UPS
probs i´m having and lack of $$ to other one ;) ) the backup one goes
off.

Sorry for the lamme question and thanks in advance for your opinions
on how can i do it.

______________________________________________//______________________
___________________________

As informações contidas neste email são confidenciais
e destinam-se apenas à(s) pessoa(s) para quem foi enviado.

PGP KeyID : 0xB7723B21

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBO45kGyNcH2C3cjshEQIHSwCfYbuVOFXRjOVM5/TcB/nhszIEwQUAn0O/
UDH6KJFEj0eFh6GskVHB0xSB
=GCeL
-----END PGP SIGNATURE-----



Relevant Pages

  • RE: Bash script
    ... Subject: Bash script ... This is the code fragment I use to check ping. ... PGP KeyID: 0xB7723B21 ...
    (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)
  • Re: Bash script
    ... Subject: Bash script ... I have a script that mails me when a host goes down and sends an email alert based on ping, ...
    (Security-Basics)
  • RE: Bash script
    ... If you use "ping ", ... >Subject: Bash script ... Otherwise it starts a daemon, firewall, backup smb daemon, etc.. ...
    (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)