Soemtimes you will run into the case where exec will be stubborn about running a particular command line for you.
If that happens you might also try using the system command in TCL.
Here is a snippet that shows a working example of the TCL system command from wihtin one of our TCL procs that calls a command line utility (sendmail) to send an email typically to a pager in our case:
system “touch ../../../Alerts/$HciConnName.off”
Here is a snippet we use that stops a given thread
system “hcicmd -p $process -c “$HciConnName pstop””
Russ Ross
RussRoss318@gmail.com