jpvdgiessen
25th September 2003, 22:20
I made the following shellscript for checking blocked licences:


$REL=6.1
TMP=${TMP:-/usr/tmp}
jj=$TMP/l$$

licmon$REL -w | awk '{
a = gsub("[a-z]*\.", "", $3 )
print $3
}' | sort > ${jj}

ps -ef | grep bshell | awk '{ print $2 }' | sort > ${jj}2

sdiff -s ${jj} ${jj}2 | grep "<" | awk '{ print $1 }' > ${jj}3

licmon$REL -w |grep -f ${jj}3

rm -f $jj ${jj}2 ${jj}3


Maybe it is of use for anyone