RE: Bash script
From: Kimble Steve (Steve.Kimble@icl.com)Date: 08/31/01
- Previous message: Frank Heyne: "RE: How secure are cookies ?"
- Next in thread: David Scott: "RE: Bash script"
- Reply: David Scott: "RE: Bash script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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>
- Previous message: Frank Heyne: "RE: How secure are cookies ?"
- Next in thread: David Scott: "RE: Bash script"
- Reply: David Scott: "RE: Bash script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|