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:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Tue, 19 Jan 1999 14:11:51 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
>Does anyone know if you can limit the number of sessions
>a specific user can have?

To add another suggestion mixing vanilla MPE and POSIX features...

:# find jobs and sessions with my logon
:showjob job=!hpuser.!hpaccount;exec > $newpass
:
:# count sessions by lines starting #S
:xeq /bin/grep " -c '^#S' " < $oldpass > $newpass
:
:# and pick up the resulting number
:input count < $oldpass

This will only work if each user has a unique logon. If multiple
people share a common MPE logon, an approach based on HPREMIPADDR
might be more appropriate, maybe by scanning LISTFILE /!hpacct,8
output...

Lars.

ATOM RSS1 RSS2