From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 14:08:07 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C274916A41F for ; Thu, 15 Dec 2005 14:08:07 +0000 (GMT) (envelope-from mj001@rogers.com) Received: from smtp102.rog.mail.re2.yahoo.com (smtp102.rog.mail.re2.yahoo.com [206.190.36.80]) by mx1.FreeBSD.org (Postfix) with SMTP id D754F43D64 for ; Thu, 15 Dec 2005 14:08:06 +0000 (GMT) (envelope-from mj001@rogers.com) Received: (qmail 47172 invoked from network); 15 Dec 2005 14:08:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=sR+AaYA/JBfFgqX8npbjdAMLzNRIdzdGjftoKpAiOj9U4zPm0jVgdWMR1+rDwJ0t/olaEtFrnnJNF+xQRmoGWDhUAX4wyQEg74D+xbl/NRmbwcqaEw2BQcXr9FE596e82cMC6C0LZr405PZFXNwKdfy3ti9wsuDaDbJAr1e0p/M= ; Received: from unknown (HELO chaucer.jeays.ca) (mj001@rogers.com@72.139.51.96 with plain) by smtp102.rog.mail.re2.yahoo.com with SMTP; 15 Dec 2005 14:08:04 -0000 From: Mike Jeays To: Nikos Vassiliadis In-Reply-To: <200512151553.42302.nvass@teledome.gr> References: <200512151553.42302.nvass@teledome.gr> Content-Type: text/plain Date: Thu, 15 Dec 2005 09:08:02 -0500 Message-Id: <1134655682.6300.144.camel@chaucer.jeays.ca> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: rc question: one-time script 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: Thu, 15 Dec 2005 14:08:07 -0000 On Thu, 2005-12-15 at 15:53 +0200, Nikos Vassiliadis wrote: > Hello list, > > Is there any way of runnning a script, only once? > at boot time for example? and all that in an rc friendly > way, without having to change the /etc/rc* scripts? > > thanks in advance > > Nikos > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" This quote from 'man 5 crontab' should help. Instead of the first five fields, one of eight special strings may appear: string meaning ------ ------- @reboot Run once, at startup. @yearly Run once a year, "0 0 1 1 *". @annually (same as @yearly) @monthly Run once a month, "0 0 1 * *". @weekly Run once a week, "0 0 * * 0". @daily Run once a day, "0 0 * * *". @midnight (same as @daily) @hourly Run once an hour, "0 * * * *".