Unnamed
public text v1 · immutableproc getPid { } {
global sc_conf
set tmpPid -1
set blah [exec ps ax | grep $sc_conf | grep -v grep]
if {[count $blah] > 0} {
set tmpPid [lindex $blah 1]
}
return $tmpPid
}proc getPid { } {
global sc_conf
set tmpPid -1
set blah [exec ps ax | grep $sc_conf | grep -v grep]
if {[count $blah] > 0} {
set tmpPid [lindex $blah 1]
}
return $tmpPid
}