#!/bin/sh # Program: chk_idle # Purpose: To determine the idle time for all users on the system # sorted by idle time (longest idle first) # Author: Adam Backman # Date: 11/06/98 # case $1 in ALL|all|All) finger -s | sort -r -k 1.35,1.39 | more exit 0 ;; *) clear echo "" finger -s | sort -r -k 1.35,1.39 | head -20 exit 0 ;; esac