[Ilugc] Cron Job

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Fri, 27 Jan 2012 18:24:02 +0530

On Fri, Jan 27, 2012 at 3:31 PM, kumaresan chandran
<kumaresanchandran at gmail.com> wrote:

?* * 01 * * /usr/bin/bbpurne

These script will execute every month of the first day fully 24 hours or
only one time a day its execute.

It will run repeatedly on the 1st of the month. Probably not something
you intended.

If you want to run something *once* a month, use:

    0 0 1 **    user    /path/to/script

Alternately you can use this more readable syntax:

    @monthly    user    /path/to/script

See "man 5 crontab" as Arun has suggested.

- Raja

Other related posts: