Date: Thu, 23 Aug 2007 13:59:37 -0500 From: Derek Ragona <derek@computinginnovations.com> To: "Narek Gharibyan" <ngharibyan@arm.synisys.com>, <freebsd-questions@freebsd.org> Cc: questions@freebsd.org Subject: Re: load script at bootup Message-ID: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.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
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20070823135819.0256fc60>