rc question: one-time script
Mike Jeays
mj001 at rogers.com
Thu Dec 15 06:08:07 PST 2005
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 * * * *".
More information about the freebsd-questions
mailing list