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.