#!/bin/sh
var=`who|cut -d' ' -f1|sort|uniq|wc -l` 
for i in $(seq 1 $var)
do
	tmp1=$(printf 'sort|uniq|head -n %d |tail -n -1' $i)
	tmp2="who|cut -d' ' -f1|"
	cmd=${tmp2}${tmp1}
	username=`eval $cmd`
	sudo -u $username /opt/dynamsoft/DynamsoftService/delete_one_cert&
done

