# Re: can someone explain crontab to me better?

From: Tom Joyce (tomjoyce_at_gmail.com)
Date: 09/19/04

• Next message: Benjamin Sobotta: "Re: can someone explain crontab to me better?"

Date: Sun, 19 Sep 2004 13:55:57 -0400
To: robg <robg.list@gmail.com>

I believe that you would simply set 2 hours, as in:

* */2 * * * root /usr/libexec/locate.updatedb

That would run the script in /usr/libexec/ called "locate.updatedb"
every 2 hours, taking as long as it needs to.

Please correct me if anyone knows more about it than I do.
Thanks...

On Sun, 19 Sep 2004 13:42:36 -0400, robg <robg.list@gmail.com> wrote:
> hi,
>
> i am having a hard time understanding crontab after reading
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html
> .. i still can't understand the minutes/hours...
>
> when you specify minutes, does it mean the command is run every X
> minutes? and if you specify a hour AND minutes, the command is run
> every X hours for X minutes? so if i did
>
> */5 */2 * * * root /usr/libexec/locate.updatedb
>
> it would run that command every two hours for 5 minutes? so when two
> hours comes around, itll keep running that command over and over for 5
> minutes? or will it run that command once every 5 minutes for two
> hours? im confused
>
> i just want to know the syntax to run something every 2 hours once ..
> can someone clarify this
>
> thanks
>
> --
> robg
> robg.list@gmail.com
> _______________________________________________
> freebsd-newbies@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"
>

--
Thomas Joyce
tomjoyce@gmail.com
ceo@jafwebdesign.com
_______________________________________________
freebsd-newbies@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"

• Next message: Benjamin Sobotta: "Re: can someone explain crontab to me better?"

## Relevant Pages

• Re: Problem when redeined macro for floats with usepackage{color}
... tables) so that single spacing is used. ... % - User can specify draft copies, ... The \beforepreface command creates the title page, ...
(comp.text.tex)
• Re: Problem when redeined macro for floats with usepackage{color}
... % - User can specify draft copies, ... The \beforepreface command creates the title page, ... % so that single spacing is used. ...
(comp.text.tex)
• RE: DTS and stored procedure
... There is a command prompt utility "dtsrun". ... The DTS package can be stored in the Microsoft® SQL Server™ ... Specify server_name to ... Displays the encrypted command used to execute the DTS package without ...
(microsoft.public.sqlserver.dts)
• Re: not in domain
... You can use the netdom command as long as you have admin credentials on the ... NETDOM JOIN Joins a workstation or member server to the domain. ... If you specify a domain controller, ... VBScript & Windows PowerShell Training - ...
(microsoft.public.scripting.vbscript)
• Re: A Solution
... The syntax of the command is incorrect. ... /G user:perm Grant specified user access rights. ... Wildcards can be used to specify more that one file in a command. ... CI - Container Inherit. ...
(microsoft.public.windowsmedia.player)