diff options
Diffstat (limited to 'examples/scripts.v2/pmtop')
-rw-r--r-- | examples/scripts.v2/pmtop | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/scripts.v2/pmtop b/examples/scripts.v2/pmtop deleted file mode 100644 index cc419ac..0000000 --- a/examples/scripts.v2/pmtop +++ /dev/null @@ -1,25 +0,0 @@ -#! /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 - - |