load script at bootup

Zbigniew Szalbot zbigniew at szalbot.homedns.org
Fri Aug 24 01:11:28 PDT 2007


Hello,

On Thu, 23 Aug 2007 13:59:37 -0500, Derek Ragona
<derek at 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



More information about the freebsd-questions mailing list