I need to write a series of maintenance scripts for our support team that will stop and start whole sites, processes or individual threads. I thought I could do this in Tcl and a sample script is shown below that I thought would do the trick for stopping a whole site cleanly.
netcfgLoad
foreach proc [netcfgGetProcList] {
foreach thread [lsort [netcfgGetProcConns $proc]] {
catch {exec hcicmd -p $proc -c “$thread pstop”}
}
}
The problem I have is when I run this from a Cloverleaf shell window it errors and reports that there is no such program as hcicmd – Obviously there is.
This is on Cloverleaf 5.3 on Windows 2000 if it makes a difference.
Am I being too clever or have I missed something?
Thanks as always for any assistance with this.
Garry