From owner-freebsd-questions@FreeBSD.ORG Thu Sep 8 21:59:30 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC8D16A41F for ; Thu, 8 Sep 2005 21:59:30 +0000 (GMT) (envelope-from martin@orbweavers.co.uk) Received: from mail.orbweavers.co.uk (213-152-38-100.dsl.eclipse.net.uk [213.152.38.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABF4743D45 for ; Thu, 8 Sep 2005 21:59:28 +0000 (GMT) (envelope-from martin@orbweavers.co.uk) Received: from xccube.orbweavers.co.uk (unknown [192.168.0.203]) by mail.orbweavers.co.uk (Postfix) with ESMTP id ACE1FB242B for ; Thu, 8 Sep 2005 22:59:27 +0100 (BST) From: Martin McCann To: freebsd-questions@freebsd.org Date: Thu, 8 Sep 2005 23:03:09 +0100 User-Agent: KMail/1.8.2 References: <4320A93D.2020500@earthlink.net> In-Reply-To: <4320A93D.2020500@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509082303.09458.martin@orbweavers.co.uk> Subject: Re: command question.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: martin@orbweavers.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 21:59:30 -0000 On Thursday 08 September 2005 22:12, Eric Murphy wrote: > Hey guys heres a quick question for you... > > I am trying to ping a certain website with the following command . ping > yahoo.com > > I would like to log all requests that come back higher then 100 or any # > i specify. > > I figured I could use the script command but im not sure how to go from > there? > > Reason for this is to prove to my ISP that there is something wrong with > my connection :) > > Would it also be possible to log the date and time of each requets? > > So inconclusion I'd like to log all icmp requests that come back higher > then 100 by date and time into a log file. date > pings.txt ; ping -c 10 www.yahoo.com | awk '{ print $7 ; }' | sort >> pings.txt this will give you a file with the date then the pings sorted from quickest to slowest. Plenty of scope to make it nicer, but it gets you the info you want. (You will probably want to increase the count, but I would also add a delay, -i, it will give you a better range and also it is not nice to fire a lot of pings to a public server). Martin > > Thanks > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"