From owner-freebsd-questions Mon Feb 5 9:45:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id B196637B401 for ; Mon, 5 Feb 2001 09:45:26 -0800 (PST) Received: from home.com ([24.177.141.133]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010205174314.PIPX19384.femail4.sdc1.sfba.home.com@home.com>; Mon, 5 Feb 2001 09:43:14 -0800 Message-ID: <3A7EE6B6.C75AE66B@home.com> Date: Mon, 05 Feb 2001 09:45:26 -0800 From: "Raymundo M. Vega" X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.5.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Joe.Warner@smed.com Cc: lucas@slb.to, freebsd-questions@FreeBSD.ORG Subject: Re: Help me make FreeBSD shine References: <852569EA.005F58D2.00@Deimos.smed.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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