setting a cron job

Paul pfortin at gmail.com
Mon Mar 10 01:15:50 UTC 2008


On Sun, Mar 9, 2008 at 9:01 PM, Jamie Griffin <jpg at gmx.com> wrote:

> ok... I've managed to edit the file successfully but now it doesn't seem
> to run. I've added the line:
>
> 2 * * * * * /usr/bin/getmail
>
> to the file but it's not fetching mail, or doesn't appear to be. Does it
> look as though there's something wrong with what i've done?
>
> Jamie



There are 5 units of time you can enter.  Each is represented by an asterisk
like so:

Minute
Hour
Day of month
Month
Day of Week

So if there are 5 asterisks, like in your example, it will run your command
every second of every hour of every day of every month.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080309/4308855b/attachment.html>


More information about the ubuntu-users mailing list