set proctrigger "!proc"

bind pub - $proctrigger  procmsgstat
proc procmsgstat {nick uhost handle chan arg} {
if {[catch {exec /bin/ps aux | grep $USER} proc]}} {}
putserv "NOTICE $nick :User $USER is running"
putserv "NOTICE $nick :$proc"
}}

#
#The error i get now:
#
#[21:48] wrong # args: should be "proc name args body"
#    while executing
#"proc procmsgstat {nick uhost handle chan arg} {
#if {[catch {exec /bin/ps aux | grep $USER} proc]}} {}"
#    (file "scripts/proc.tcl" line 55)
#    invoked from within
#"source scripts/proc.tcl"
