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
how to exec .sh files
System
Originally posted by Nate Kruse
My unix guy created a .sh file that I'm supposed to call from a tcl script. Has anyone used the exec command to call/run a .sh file?
Thanks,
Nate.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Bob Richardson
Greetings,
Here is a method that we have used to call a Ksh script from a Tcl proc within a running engine (process):
set cmd "/alin1hub_bin/datacenter_lab_down.sh"
catch {system $cmd} error
echo "system call status:$error for command $cmd"
Be sure that the script has execute permissions.
Good luck!
System
Originally posted by Nate Kruse
Thanks for the response.
I gave it a shot and error 127 is returned. Have you came across that one? Google isn't doing much so far.
System
Originally posted by Bob Richardson
Greetings,
I have added a link here which talks about ksh error 127 - it appears that arguments may need to be passed to this script. I googled on "ksh 127 error". Link is:
http://www.research.att.com/~gsf/man/man1/ksh.html
Is your script designed to be invoked from another program? run interactively? Maybe debug it before inserting it into your tcl program.
Here is another link for debugging:
http://lekenutemekiset.homeip.net/~robertbratt/reference_library/unix_bookshelf_3.0/korn/ch09_01.htm
Hope this helps you out.
Charlie Bursell
From the ksh man page
127
-c and -s were not specified and the command script corresponding to arg could not be found.