All pastes #294412 Raw Edit

Unnamed

public text v1 · immutable
#294412 ·published 2006-12-28 13:24 UTC
rendered paste body
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
}