load script at bootup

Narek Gharibyan ngharibyan at arm.synisys.com
Thu Aug 23 11:48:25 PDT 2007


#!/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



More information about the freebsd-questions mailing list