HP3000-L Archives

March 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Thu, 26 Mar 1998 09:35:27 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
Stan writes:

> You can "roll your own" last-logon-date by doing:
>
>    1) create a group called LASTLOGN in the accounts you're interested in.
>
>    2) add an account-wide logon UDC (or add to the existing one):
>
>         CONTINUE
>         /SYS/HPBIN/TOUCH ../LASTLOGN/!HPUSER
>
> Then, you can later do:
>
>    LISTF @.LASTLOGN, 3

Oooh, I *like* this!

I was thinking of a logon UDC that would append a string to a file,
or even selecting the logon entries in the system log files, but I
like this much better!

The only drawback is that it doesn't keep the logon history, but that
wasn't a requirement in the first place.

The best part (aside from being free ;) is that it's so simple.
It's also easily extended.  For instance, while the solution
as presented builds an MPE file, it doesn't have to.  (If you want
to build the file as !hpaccount.!hpuser though, be aware that files
in MPE groups have a 16-character limit.)

Plus, you can :listfile,6 to put the names in a file (already sorted),
and compare it with last month's list (using, say, Robelle's very nice
COMPARE, or the POSIX utility 'diff').

Nice going, Stan!

--Glenn "wondering if ! in var evaluations or .sigs apply to my ! quota" Cole
  Software al dente, Inc.
  [log in to unmask]

.......................................................................

Item Subject: cc:Mail Text

ATOM RSS1 RSS2