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
Cloverleaf
Running a shell script in an alert
Carl Tosi
Currently, I have an alert set to 'exec' action. I have it pointing to a shell proc, /opt/cloverleaf/cis20.1/integrator/uimcpmsc/scripts/Phil_Dev_alrt_bounce.sh), to bounce the thread when it exceeds max threhold.
Can I just place the commands in the textbox instead :
hcicmd -p dvcedtahl7PROD -c 'f_PHLPS_dvce pstop'
sleep 30
hcicmd -p dvcedtahl7PROD -c 'f_PHLPS_dvce pstart'
TIA,
Carl Tosi
Find more posts tagged with
Clovertech
Comments
Gene Millard
You can put the command in the Command box.
There is a new command you can use to cycle the thread.
It is prestart
hcicmd -p dvcedtahl7PROD -c ‘f_PHLPS_dvce prestart 30’
Gene Millard
Charlie Bursell
As I have said before, stopping and starting threads can be a bit ify at times. You don't know how much more the thread might attempt to do before stopping or even if it stops at all. It all depends on busy the process is. The command may time out before it is executed.
I find it safer to stop the process even if it means putting a thread in a process by itself or with other threads you don't mind stopping/starting a the same time. The process stop command will kick the process to death if it does not stop naturally.
Just my $0.02.