From owner-freebsd-questions@FreeBSD.ORG Thu Aug 23 19:02:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA33B16A419 for ; Thu, 23 Aug 2007 19:02:52 +0000 (UTC) (envelope-from shantanoo@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3D81413C4F7 for ; Thu, 23 Aug 2007 19:02:51 +0000 (UTC) (envelope-from shantanoo@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so426754rvb for ; Thu, 23 Aug 2007 12:02:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=gIY2QjTrjbhWTzaPgldcWCzbXqdrsFcsHH2lzNKYo1k2rM2gc6Yqtq7Yz2xc1y2VUqCcyCgaB97RlmQ7Uy1BXa6ebkPMSfmzLgV28Z+6z4TfNlwW+T56xfXGl8cYy2GgfFCGFOeyeqCHRpGg/QwC5elKmQd3chscpUJpgZFlLVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=HcsRcHBLJyslMIPnIYw/MOK9DMOaEuHPsVvqTZW1/pHHfhSsoZv59yEBl4slI3d/wPs5AW3Pnit6R3DulDGvfwyFIdONIzpCm2Ehg276tkLNekO0E5K4KOzK/izNpcPhB4IMcWHB8waR8PM+1zlAO41gfzyHy2uZXrJDwRDMYjo= Received: by 10.141.97.5 with SMTP id z5mr1000471rvl.1187895770722; Thu, 23 Aug 2007 12:02:50 -0700 (PDT) Received: from ?192.168.0.2? ( [121.247.78.27]) by mx.google.com with ESMTPS id b2sm4182383rvf.2007.08.23.12.02.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2007 12:02:41 -0700 (PDT) In-Reply-To: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com> References: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-9--864843042; protocol="application/pkcs7-signature" Message-Id: From: Shantanoo Mahajan Date: Fri, 24 Aug 2007 00:32:34 +0530 To: Narek Gharibyan X-Mailer: Apple Mail (2.752.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org, freebsd-questions@freebsd.org Subject: Re: load script at bootup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 19:02:52 -0000 --Apple-Mail-9--864843042 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 24-Aug-07, at 12:18 AM, Narek Gharibyan wrote: > #!/bin/sh > > Ping -Dc 3600 xxx.xxx.xxx.xxx | tail -4 >>/root/stat && date >> / > root/stat > && echo "===========================" >> /root/stat > > > > I wrote this script for collecting ping statistic (after I email to > a group > the stat file). > > 1. how can I run this at startup > > 2. how can I restart this script after 3600 counts down > For 1 and 2, 'man cron', 'man crontab' > 3. Is there a program, script or any way more appropriate to track the > packet loss and ping availability.? You may write your own script which parses the output of ping using grep/awk/... regards, shantanoo --Apple-Mail-9--864843042--