#!/bin/sh # Program: cpu_hogs # Purpose: To determine the amount of CPU utilization for each user # on the system. # Author: Adam Backman # Date: 04/29/98 # case $1 in ALL|All|all) ps -ef | grep _prog | sort +6 -r | cut -c 1-14,24-32,40-48 | more ;; *) ps -ef | grep _prog | sort +6 -r | cut -c 1-14,24-32,40-48 | head -n 10 ;; esac