From owner-freebsd-questions@FreeBSD.ORG Thu Aug 23 18:48:25 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F10816A418; Thu, 23 Aug 2007 18:48:25 +0000 (UTC) (envelope-from ngharibyan@arm.synisys.com) Received: from arm.synisys.com (mx.arm.synisys.com [91.103.27.98]) by mx1.freebsd.org (Postfix) with ESMTP id 0A15013C458; Thu, 23 Aug 2007 18:48:19 +0000 (UTC) (envelope-from ngharibyan@arm.synisys.com) Received: from sis2w001 by arm.synisys.com (MDaemon PRO v9.6.1) with ESMTP id md50000026636.msg; Thu, 23 Aug 2007 23:46:14 +0500 From: "Narek Gharibyan" To: Date: Thu, 23 Aug 2007 23:48:06 +0500 Message-ID: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 thread-index: AcfltiRFmQPjRJDKRg2tmstg2BbBrw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Spam-Processed: arm.synisys.com, Thu, 23 Aug 2007 23:46:14 +0500 (not processed: message from valid local sender) X-MDOP-RefID: str=0001.0A090202.46CDD667.0076,ss=1,fgs=0 (_st=1 _vt=0 _iwf=0) X-Return-Path: ngharibyan@arm.synisys.com X-Envelope-From: ngharibyan@arm.synisys.com X-MDAV-Processed: arm.synisys.com, Thu, 23 Aug 2007 23:46:15 +0500 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: 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 18:48:25 -0000 #!/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 3. Is there a program, script or any way more appropriate to track the packet loss and ping availability.? Thank you in advance