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