#!/usr/bin/csh
while (1)

if ($1 != "") then
	set numproc=`ps -u $1 | wc -l`
else
	set numproc=`ps -e | wc -l`
endif
if ($numproc > 10) then
	date
	echo There are $numproc processes running by user $1
endif
sleep 10
end
