Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2007 10:11:24 +0200
From:      Zbigniew Szalbot <zbigniew@szalbot.homedns.org>
To:        Freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: load script at bootup
Message-ID:  <223ba4b925eeff50b090a8bd14840467@szalbot.homedns.org>
In-Reply-To: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com>
References:  <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com>

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

Hello,

On Thu, 23 Aug 2007 13:59:37 -0500, Derek Ragona
<derek@computinginnovations.com> wrote:
> 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

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

I also have a script that I want to start at boot time and I simply
symlinked it to /usr/local/etc/rc.d/
It starts fine but now I wonder if maybe this is not the proper way to
start up scripts?

-- 
Zbigniew Szalbot
www.slowo.pl
www.lcwords.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?223ba4b925eeff50b090a8bd14840467>