From owner-freebsd-questions Mon Feb 5 10: 1:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.smed.com (unknown [64.46.248.11]) by hub.freebsd.org (Postfix) with ESMTP id 7B95837B503 for ; Mon, 5 Feb 2001 10:01:00 -0800 (PST) Received: from smtpgate.shrmed.com (unknown [64.46.248.1]) by smtp.smed.com (Postfix) with ESMTP id A9064161B9 for ; Mon, 5 Feb 2001 13:00:58 -0500 (EST) Received: from iesa14.shrmed.com (iesa14.shrmed.com [10.1.99.114]) by smtpgate.shrmed.com (8.9.3/8.9.3) with ESMTP id NAA16340 for ; Mon, 5 Feb 2001 13:00:19 -0500 From: Joe.Warner@smed.com Received: from Deimos.smed.com (unverified) by iesa14.shrmed.com (Content Technologies SMTPRS 2.0.15) with SMTP id ; Mon, 05 Feb 2001 13:00:00 -0500 Received: by Deimos.smed.com(Lotus SMTP MTA v4.6.5 (863.2 5-20-1999)) id 852569EA.00629871 ; Mon, 5 Feb 2001 12:56:55 -0500 X-Lotus-FromDomain: SMS To: "Raymundo M. Vega" Cc: freebsd-questions@freebsd.org, lucas@slb.to Message-Id: <852569EA.00629792.00@Deimos.smed.com> Date: Mon, 5 Feb 2001 11:00:40 -0700 Subject: Re: Help me make FreeBSD shine MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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" | | | | | | | | | 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