can't setup Job to be recurring with CRON

Latest response

Hi, is there a way to create a job in Satellite using cron and using this syntax

30 9 8-14 * * test $(date +\%u) -eq 3 [due to UTC that is 5:30AM EDT]

I want 2nd Wednesday of every month.
I think it can only handle 30 9 8-14 * * is that true ?
thank you.
We run Satellite 6.3

Responses

I would say :

30 9 * * 3#2 command

3 means Wednesday and

2 means the second one

Thank you so much, i will test this to see if the "#2" syntax is supported and report back when i can. -ALF

I am using for 1st Wednesday 00 10 * * 3 [ date +\%d -le 07 ] && script

Hi Pascal, looks like Satellite Server does not accept that syntax when i try to create the Job. thanks.

Sorry about that, "#" might not be standard implementation

Hi, since i need this syntax { 30 9 8-14 * * test $(date +\%u) -eq 3 } I am going to try putting only the CRON date and time in the job and the command the job runs will be a script that does the "test $(date +\%u) -eq 3" part. If that allows the script to only run when i want, i will use that as a Plan B as we know it works. The issue is it is not scale-able to put a script on all my servers to i will look at making a custom Template in Satellite server. Thank you.

Angelo,

I am late to this conversation, but please tell me where you are trying to use your original cron expression? I would like to understand the problem better. If Satellite should be accepting that syntax, perhaps we can get that problem fixed?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.