rc question: one-time script
Nikos Vassiliadis
nvass at teledome.gr
Thu Dec 15 06:25:13 PST 2005
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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at 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!
More information about the freebsd-questions
mailing list