infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
CRON JOB TO RUN once a month
mike brown
Hi All
A little help, please, i am setting up cron to run every second Wednesday of every month at 21:25, i came up with this, i think i am stuck, any ideas... on what i am missing.
# Bounce thread for Clinical Diagnostic/Ancillary every Second Wednesday ---- ** LIVE **
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite mix_1; hcicmd -p pmhb -c 'xper_o_ob pstop'; sleep 10; hcicmd -p pmhb -c 'xper_o_ob pstart'
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite mix_1; hcicmd -p pmhb -c 'xcel_o_ob pstop'; sleep 10; hcicmd -p pmhb -c 'xcel_o_ob pstart'
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite 835700_1; hcicmd -p pmhc -c 'xcel_a_oc pstop'; sleep 10; hcicmd -p pmhc -c 'xcel_a_oc pstart'
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite citiprod; hcicmd -p pmhc -c 'xcelera_r_ic pstop'; sleep 10; hcicmd -p pmhc -c 'xcelera_r_ic pstart'
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite citibatch; hcicmd -p pmha -c 'xper_c_ia pstop'; sleep 10; hcicmd -p pmha -c 'xper_c_ia pstart'
#25 21 * * 3 [ `date +%e` -gt 4 -a `date +%e` -lt 11 ] && setroot /quovadx/cis5.8/integrator; setsite citiprod; hcicmd -p pmhc -c 'xper_r_ic pstop'; sleep 10; hcicmd -p pmhc -c 'xper_r_ic pstart'
#
Find more posts tagged with
Clovertech
Comments
david_barr
What's happening with the entry? Running every Wed?
My guess is you need an open paren before the setroot and a close at the end of the line. I think that the semicolon has a higher precedence than the ampersands, so the date test only affects the setroot part of the command.
Russ Ross
I previously posted an FYI working example of how I run a cron entry the first Thursday of every month that you can use as a reference at this URL:
how to get cron to run something the first Thursday of each
This should help you get yours working and understand why it doesn't work currently for you:
mike brown
Got it, thanks it works great..
mike