Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2001 11:00:40 -0700
From:      Joe.Warner@smed.com
To:        "Raymundo M. Vega" <RaymundoVega@home.com>
Cc:        freebsd-questions@freebsd.org, lucas@slb.to
Subject:   Re: Help me make FreeBSD shine
Message-ID:  <852569EA.00629792.00@Deimos.smed.com>

next in thread | raw e-mail | index | archive | help


Hey man, thanks a lot!

That worked beautifully.  8^)

Judging from all the responses I've
received so far, there's definitely more
than one way to skin a cat.

Looks like I've got a lot of testing to do.

Thanks

Joe




|--------+----------------------->
|        |          "Raymundo M. |
|        |          Vega"        |
|        |          <RaymundoVega|
|        |          @home.com>   |
|        |                       |
|        |          02/05/01     |
|        |          10:45 AM     |
|        |                       |
|--------+----------------------->
  >---------------------------------------------------------|
  |                                                         |
  |       To:     Joe Warner/SMS@SMS                        |
  |       cc:     lucas@slb.to,                             |
  |       freebsd-questions@FreeBSD.ORG                     |
  |       Subject:     Re: Help me make FreeBSD shine       |
  >---------------------------------------------------------|





Joe.Warner@smed.com wrote:
>
> Hey thanks!
>
> Right now, I'm just starting with something simple.
>
> I created this script:
>
> #!/bin/sh
>
> grep -v "#" /etc/hosts | awk '{print $1}' | while read host
> do
> ping -c 1 $host

complete the line with:
ping -c 1 $host >> hosts_on_line.txt

You may need to delete this file at the begining of the script
because it will append the output.

suerte

raymundo
> done
>
> ...and it works, except I want the output to be dumped
> into a text file.
>
> Do you know how I should change this script so I could
> do that?
>
> If this script doesn't do what my manager wants, I'll
> definitely try yours.
>
> Thanks
>
> Joe
>





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?852569EA.00629792.00>