From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 08:04:03 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 4BC5B16A468 for ; Fri, 24 Aug 2007 08:04:03 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id A9AA113C483 for ; Fri, 24 Aug 2007 08:03:59 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l7NJ0Kp6016140; Thu, 23 Aug 2007 14:00:22 -0500 (CDT) Message-Id: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 23 Aug 2007 13:59:37 -0500 To: "Narek Gharibyan" , From: Derek Ragona In-Reply-To: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com> References: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Fri, 24 Aug 2007 08:04:03 -0000 At 01:48 PM 8/23/2007, 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 > >3. Is there a program, script or any way more appropriate to track the >packet loss and ping availability.? > > > >Thank you in advance Add your script to root's crontab. do a man on crontab for the exact syntax, but you can have it run @reboot then an interval. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.