: $Workfile:   sunproc.sh  $ $Revision:   1.0  $
#**********************************************************************#
#*                                                                    *#
#* Copyright (c) 2001 by Sun Microsystems, Inc.                       *#
#* All rights reserved.                                               *#
#*                                                                    *#
#**********************************************************************#


# sunproc
# display active processes

#create	temporary file name based on process id
tmpfile=df.$$

trap "/bin/rm -f $tmpfile; exit	0" 0 1 2 3
# continue executing until no processes	start with "unikix"

while true
do
	ps -vx |	grep unikix > $tmpfile
	if test	-s $tmpfile
	then
		clear
		echo "Active processes:"
		cat $tmpfile
		sleep 5
		/bin/rm	-f $tmpfile
	else
		/bin/rm	-f $tmpfile
		exit 0
	fi
done;
