HP3000-L Archives

January 1999, Week 3

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:
"Michael D. Hensley" <[log in to unmask]>
Reply To:
Date:
Mon, 18 Jan 1999 14:42:52 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
JeffH asked:
> Does anyone know if you can limit the number of sessions a specific user
> can have?

Sure!  Try this in your system-wide OPTION LOGON UDC:

file sjlist,oldtemp
if finfo("*sjlist","exists")
   purge sjlist,temp
endif
showjob job=!hpjobname,!hpuser.!hpaccount >sjlist
setvar sjlist_lines finfo("*sjlist","eof")
if sjlist_lines > 6
   echo Duplicate logon not allowed!
else
   echo You're the first!
endif
deletevar sjlist_lines
reset sjlist

Improvements, anyone?

---
Michael D. Hensley       | mailto:[log in to unmask]
Allegro Consultants Inc. | Visit scenic http://www.allegro.com
408/252-2330             | "Support Bill of Rights Enforcement"

ATOM RSS1 RSS2