From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d812ee0e34f45314 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2004-01-29 07:40:10 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Newsgroups: comp.sys.dec Distribution: world X-Newsreader: mxrn 6.18-32C References: <5d8887774c.michael@privat.utfors.se> From: hammond@not@peek.ssr.hp.com (Charlie Hammond) Reply-To: hammond@not@peek.ssr.hp.com Subject: Re: Hobbyist License problems (was: Re: llcense problems) Message-ID: Date: Thu, 29 Jan 2004 15:40:09 GMT NNTP-Posting-Host: 16.32.0.107 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1075390809 16.32.0.107 (Thu, 29 Jan 2004 07:40:09 PST) NNTP-Posting-Date: Thu, 29 Jan 2004 07:40:09 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.sys.dec:17666 No support. No guarantee. But, if you're inerested, here is how I warn myself about soon-to-expire licenses: $ SET VERIFY $! $! LIC_CHECK.COM $! $! Check for soon-to-terminate licenses $! $! Resubmit job $! $! We will not run this on Sat or Sun. $! $! If this is FRIDAY , re-submit it for next MONDAY $! $ if f$cvtime("TODAY",,"WEEKDAY") .eqs. "Friday" $ then ! On Friday, "TOMORROW+2-" is next Monday $ after_time = f$cvtime("TOMORROW+2-","ABSOLUTE") $ else $ after_time = f$cvtime("TOMORROW","ABSOLUTE") $ endif $! $ set noon $ submit lic_check.com /name=lic_check /after="''after_time'" $ stat = $status $ set on $ if .not. $status $ then $ mail blank.txt _hammond - /subj="LIC_CHECK failed to re-submit itself -- continuing" $ endif $! $! On Monday check for anything w/i 30 days. $ if f$cvtime("TODAY",,"WEEKDAY") .eqs. "Monday" $ then $ pipe sho lic | sear sys$input terminate $ if $status .eq. %X10000001 ! normal -- found terminate $ then $ mail blank.txt _hammond - /subj="1 or more licenses will terminate within 30 days" $ exit $ else $ if $status .ne. %X18D78053 ! No strings matched $ then $! Anything other than normal and no strigs matched is unexpected. $ mail blank.txt _hammond - /subj="Unexpected status in LIC-CHECK.COM(30)" $ exit $ endif $ endif $! $! Other days, check only for w/i 10 days $ else $ x$d = f$cvtime("today+10-","absolute") $ x$d = f$element(0," ",x$d) $ pipe sho lic /before /termination='x$d' | sear sys$input criteria $ if $status .eq. %X18D78053 ! No strings matched -- terminate $ then $ mail blank.txt _hammond - /subj="1 or more licenses will terminate within 10 days" $ exit $ else $ if $status .ne. %X10000001 ! normal -- found $ then $! Anything other than normal and no strigs matched is unexpected. $ mail blank.txt _hammond - /subj="Unexpected status in LIC-CHECK.COM(10)" $ exit $ endif $ endif $ endif -- Charlie Hammond -- Hewlett-Packard Company -- Ft Lauderdale FL USA (hammond@not@peek.ssr.hp.com -- remove "@not" when replying) All opinions expressed are my own and not necessarily my employer's.