Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 09:08:02 -0500
From:      Mike Jeays <mj001@rogers.com>
To:        Nikos Vassiliadis <nvass@teledome.gr>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: rc question: one-time script
Message-ID:  <1134655682.6300.144.camel@chaucer.jeays.ca>
In-Reply-To: <200512151553.42302.nvass@teledome.gr>
References:  <200512151553.42302.nvass@teledome.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
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 * * * *".






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