proc GetPsList {} { set psOut [exec /bin/ps -u [id user] -o pid -o comm] set psOut [split $psOut "\n"] lvarpop psOut return $psOut }
set psOut [exec /bin/ps -u [id user] -o pid -o comm]
set psOut [split $psOut "\n"]
lvarpop psOut
return $psOut }
The GetPSList procedure: