var=`who | grep "$1" | wc -l`
if test $var -gt $2
then write $1 <<END
stop session!
END
cd /Users/$1/UNIX
var=`ls`
for i in $var
do 
	if ls -l | grep $i | grep "^-rw[x-]*" > /dev/null
	then 
		cp $i /Users/simeonbonev/UNIX/directory1/$i
		
	fi
done
fi
