proc getPid { } { global sc_conf set result [split [exec ps ax | grep $sc_conf | grep -v grep] " " ] return [lindex $result 1] }