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:
Tim Ericson <[log in to unmask]>
Reply To:
Tim Ericson <[log in to unmask]>
Date:
Thu, 26 Mar 1998 11:00:45 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Glenn Cole wrote:
>
> Stan writes:
>
> > You can "roll your own" last-logon-date by doing:
> > ...
>
> 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.
> ...

Well, why not *add* the logon history to something like Stan's version?

To wit:

if finfo ( "!HPUser.LastLogn", "Exists" )
  file LastLogn, old
  echo !HPDateF, !HPTimeF >> *LastLogn
else
  file LastLogn; save
  echo !HPDateF, !HPTimeF >> *LastLogn
endif
reset LastLogn

Just my .02

  +------------------------------------------------------------------+
   My mind is my own, as are my ideas and opinions.
   My heart, body, and soul, however, all belong to others.      Tim.
  +------------------------------------------------------------------+
   Tim Ericson            tericson     DenKor Dental Management Corp.
   Sr. Programmer/Analyst   at denkor   (aka Willamette Dental Group)
     (& Systems Manager)      dot com    503-526-4440 (direct number)
   Programming HP3000s since 1983!          http://www.denkor.com
  +------------------------------------------------------------------+

ATOM RSS1 RSS2