Clarity

  • 1.  CRON setting does not work

    Posted Jul 02, 2013 09:51 AM
    Hello,
    I've got a problem with cron scheduling of job.
    I need to schedule job every second monday at 01:15.
    I used this:
    15 01 */14 * *
    It was ok on 10th June and 24th June, but since 25th June it was running every day (cron was not changed).
    Does anyone have experience with this or some advice?
    Thanks,
    Martin


  • 2.  RE: CRON setting does not work

    Posted Jul 02, 2013 03:05 PM
    When did you create the job?
    Has it been running at the of any month the way you want?

    If google for crontab every second week you get using /2 with the day of week.
    Then further that option /2 does not work with the day of week and you need additional scripting before the actual command.

    With Clarity that is not possible, it is just the crontab and no script and no command (visible to the user)

    Martti K.


  • 3.  RE: CRON setting does not work

    Posted Jul 02, 2013 03:28 PM
    After doing some Googling, I found some info on this forum:
    https://forums.oracle.com/thread/2367038?tstart=0

    = = = = = = = = =
    From the cron man page: http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5

    "Step values can be used in conjunction with ranges. Following a range
    with ``/<number>'' specifies skips of the number's value through the
    range. For example, ``0-23/2'' can be used in the hours field to spec-
    ify command execution every other hour (the alternative in the V7 stan-
    dard is ``0,2,4,6,8,10,12,14,16,18,20,22''). Steps are also permitted
    after an asterisk, so if you want to say ``every two hours'', just use
    ``*/2''."
    = = = = = = = = =

    I would try this cron statement, it doesn't use any scripts:

    15 01 * * 1/2

    15 = is for 15 minutes after the hour
    01 = for for the hour
    * = for every day of the month
    * = every month
    1/2 = 1 for Monday, /2 to specify the number of skips.

    Mike H.