load script at bootup
Shantanoo Mahajan
shantanoo at gmail.com
Thu Aug 23 12:02:52 PDT 2007
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
More information about the freebsd-questions
mailing list