From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98413750412930.tru64-unix-managers.marc@archive.invalid> From: Mark Bowman Date: Fri, 09 Mar 2001 11:31:09 +0000 To: tru64-unix-managers Subject: SUMMARY: LMF TERMINATION DATE CHECKER X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98413750412930 Many thanks to all that replied to my request for help, and Specially to Barry Branch who very kindly provided me with a easy to understand script that was short and simply: -but does the job! #!/bin/sh MAILTO=${*:-"root"} mm=`date +%b | tr '[a-z]' '[A-Z]'` yy=`date +%Y` expire=`/usr/sbin/lmf list full | grep -p ${mm}-${yy}` if [ "${expire}" ]; then mailx -s "The following licenses will expire this month for `hostname`" $MAILTO <