Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 00:32:34 +0530
From:      Shantanoo Mahajan <shantanoo@gmail.com>
To:        Narek Gharibyan <ngharibyan@arm.synisys.com>
Cc:        questions@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: load script at bootup
Message-ID:  <EFA75BAC-3AAD-4234-9C79-676015FE16B5@gmail.com>
In-Reply-To: <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com>
References:  <015401c7e5b6$24b77580$180ca8c0@arm.synisys.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EFA75BAC-3AAD-4234-9C79-676015FE16B5>