Tahir,
One of the ways that we do this is to set up a shell script to execute the tclscript. Here is the contents of what we have in the shell script:
#!/usr/bin/ksh
setroot /hci/cis6.1/integrator
setsite scc
/sites/cron_files/tclscripts/cksndtime scc
Then in the cksndtime tclscript we have the following:
#!/usr/bin/env tcl
.
.
exec — hcicmd -p $process -c “$thread prestart 30”