Current Path : /compat/linux/usr/share/doc/bash-3.2/scripts.v2/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/usr/share/doc/bash-3.2/scripts.v2/pmtop |
#! /bin/bash # # pmtop - poor man's `top' for SunOS 4.x # CLEAR=clear # could also be 'tput clear' HEADER="USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND" if [ -n "$LINES" ]; then SS=$(( $LINES - 2 )) else SS=20 fi while : do $CLEAR echo "$HEADER" ps -aux | sort -nr -k 3 | sed ${SS}q sleep 5 done exit 0