Thursday, July 14, 2011

prstat timestamp

The prstat command of Solaris 9 doesn't has timestamp information. The following command can add a timestamp:

$ prstat -c 15 | nawk '$1=="PID" { "date" | getline d ; close("date") } { print d,$0 }'

Source: http://www.tek-tips.com/viewthread.cfm?qid=1583326&page=10