#!/bin/sh DISPPROC=15 DELAY=5 clear while (true) do clear echo "-------------------------------------------------------------------------------" echo " Top Processes" /usr/bin/uname -a /usr/bin/uptime /bin/date echo "-------------------------------------------------------------------------------" /bin/ps aux | head -$DISPPROC sleep $DELAY done