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
Run hcicmd from a tcl script
jdInforComm
Hello - I have a tcl script that gathers inbound and outbound thread lists by loading the NetConfig, extracting key pair information.
I would like to run the hcicmd command on the lists to stop the threads; only way that I've come across to run the command is to use "exec"; this works great for stopping/starting the threads from the tcl script.
Does stopping/starting the threads with "exec" in the tcl script put a load/stress on the linux box to be concerned about in general? Does it or will it leave files, locks, linux processes open? Hope I'm making some sense. If there's perhaps an exising script to stop/start threads from tcl script that I can use for reference that would be great. Thanks in advance. JD
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
The only problem I see here is that thread may or may not stop. Depending how busy the process is the command may time out. No clean up needed for stopping a thread as all of the resources are assigned to the process. There is a perl command in $HCIROOT/bin named hcienginestop.pl which can be called but it will stop all. You could take a look and see how it does cleanup.
jdInforComm
Initially I tested explicitly with one process, one thread, one site, and it all worked smoothly; now it looks like a time out (as you mentioned) may be occurring and the threads do not stop. Also, seems the hcicmd command to stop the thread works when script is run when setsite is set to the site where the thread lives. Can the perl command be run from a tcl script via "exec"?
Charlie Bursell
hcicmd will always run in the current site.
You can exec any executable from Tcl. How it behaves depends on how it is written. Where the output goes where it expects input from dependencies, etc.