Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 16:22:14 +0200
From:      Nikos Vassiliadis <nvass@teledome.gr>
To:        Mike Jeays <mj001@rogers.com>, "Doug Poland" <doug@polands.org>, "Vasilkov Vasily" <chand0s@list.ru>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: rc question: one-time script
Message-ID:  <200512151622.14206.nvass@teledome.gr>
In-Reply-To: <1134655682.6300.144.camel@chaucer.jeays.ca>
References:  <200512151553.42302.nvass@teledome.gr> <1134655682.6300.144.camel@chaucer.jeays.ca>

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



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