Oracle_scripte/Tanel/tools/sesspack_ps.sh
2014-09-17 13:23:48 +02:00

11 lines
244 B
Bash

#!/bin/sh
# Note that this is currently only for Solaris
while true
do
echo `date +%Y%m%d%H%M%S`";"BEGIN_PS_SAMPLE > /tmp/sawr_ps_pipe
ps -u oracle -o pid,time | awk '{ if ( NR > 1 ) print $1";"$2 }' > /tmp/sawr_ps_pipe
done