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
Call a shell script (.sh) from a tps proc
RICK L. PRITCHETT
Looking to call a shell script from a tps proc. It looks to be hanging in the testing tool. I have tried the following when calling the script.
exec /hci/cis19.1/integrator/scripts/tps_alerts/blockproddata.sh $thdName $site
exec {/hci/cis19.1/integrator/scripts/tps_alerts/blockproddata.sh $thdName $site}
Find more posts tagged with
Clovertech
Comments
Max Drown
Always use the tcl catch command when calling exec.
Charlie Bursell
First, I would change path to something like:
$::HciSiteDir/scripts/tps_alerts/..... to make it available to furfure versions of Cloverleaf. If You had the script in the scripts directory you would not need the path at all, just the script name since the scripts directory is in your path environment.
Then, run the script in the background by appending an & at the end. The script is hanging waiting for action
Then, as Max said, it is always safer to use a catch just in case.