From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 14:25:13 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 AEF6D16A41F for ; Thu, 15 Dec 2005 14:25:13 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C058A43D69 for ; Thu, 15 Dec 2005 14:24:59 +0000 (GMT) (envelope-from nvass@teledome.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id jBFEOrkA015788; Thu, 15 Dec 2005 16:24:53 +0200 From: Nikos Vassiliadis To: Mike Jeays , "Doug Poland" , "Vasilkov Vasily" Date: Thu, 15 Dec 2005 16:22:14 +0200 User-Agent: KMail/1.8.1 References: <200512151553.42302.nvass@teledome.gr> <1134655682.6300.144.camel@chaucer.jeays.ca> In-Reply-To: <1134655682.6300.144.camel@chaucer.jeays.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512151622.14206.nvass@teledome.gr> 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:25:13 -0000 On Thursday 15 December 2005 16:08, Mike Jeays wrote: > 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 * * * *". Great, thanks a lot!