Re: Script to Ping -t output to screen and file at the same time.

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Steve Fulton (cerberus40_at_hotmail.com)
Date: 10/23/04


Date: Sat, 23 Oct 2004 13:09:01 -0400

BigMan wrote:

> I am trying to monitor when a computer comes online and offline using the
> ping -t command and need to watch the screen to see when the request
> times out and replys while logging the output to a file. So I am trying
> to write a script to send ping -t output to the screen and to a file.
> Here is
> a sample of the script. Please Help Me!! TIA

Man page of TEE
http://www.zevils.com/cgi-bin/man/

Native Win32 ports of some GNU utilities
http://unxutils.sourceforge.net/

-- 
Steve
Education is a progressive discovery of our own ignorance. -Will Durant


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: Configure iptables to not log certain hits
    ... I would like to stop the logging of their pings. ... Create a script that would parse my firewall logs for IP ... > addresses that ping my computer for these ports, ... > iptables command could result in scp connections not being logged. ...
    (comp.os.linux.security)
  • 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)
  • Trouble with Net::Ping
    ... And now here is what I get using ping manually: ... Approximate round trip times in milli-seconds: ... The manual execution of ping happened just before and just after my ... they are clearly accessable when manually invoking ping, the script ...
    (comp.lang.perl.misc)