From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 08:11:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D502216A417 for ; Fri, 24 Aug 2007 08:11:28 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from szalbot.homedns.org (lists.lc-words.com [83.19.156.210]) by mx1.freebsd.org (Postfix) with ESMTP id 8A58C13C4A7 for ; Fri, 24 Aug 2007 08:11:28 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from www (helo=www) by szalbot.homedns.org with local for freebsd-questions@freebsd.org; Fri, 24 Aug 2007 10:11:24 +0200 To: Freebsd questions X-PHP-Script: https://poczta.szalbot.homedns.org/index.php for 192.168.11.1 MIME-Version: 1.0 Date: Fri, 24 Aug 2007 10:11:24 +0200 From: Zbigniew Szalbot In-Reply-To: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com> References: <6.0.0.22.2.20070823135819.0256fc60@mail.computinginnovations.com> Message-ID: <223ba4b925eeff50b090a8bd14840467@szalbot.homedns.org> X-Sender: zbigniew@szalbot.homedns.org User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: load script at bootup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 08:11:28 -0000 Hello, On Thu, 23 Aug 2007 13:59:37 -0500, Derek Ragona 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