HP3000-L Archives

August 2001, 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:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Mon, 27 Aug 2001 18:52:04 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
On Mon, 27 Aug 2001 15:22:20 -0700, Newton, Ernie <[log in to unmask]> wrote:

>Greetings,
>
>    $no-concur-sess @2.accountname
>
>We use that command in Vesoft to limit user logons to only one.
>
>In this example, all users in school district 2 are specified.
>
>We now have a need to allow concurrent logons for a couple of users.
>
>Is there a way to allow some users in @2 to have concurrent logons, while
>all others are not?
>
>It doesn't appear as though the minus sign can be used here.

yes, "subtracted-out" userset can be used and should work well.  THERE IS A
TRICK to it, however -- there can NOT be any embedded spaces in
a "userset", so if you have:

   $no-concur-sess @2.acct - mgr2.acct

the minus is ignored (actually, it probably generates an error).  Instead
use:

   $no-concur-sess @2.acct-mgr2.acct

There IS an exception to the "no embedded spaces" rule -- usersets that
continue on the next line (by virtue of an ampersand) MAY have leading
spaces which are not counted.  i.e., you could have the following:

   $no-concur-sess @2.acct&
                -mgr2.acct&
               -user2.acct

All of this should be explained in the on-line help and printed manual.

Another method of doing this, which may help readability, is to
use "defined" usersets:

   $define-userset everyone  @.@
   $define-userset me       (tom.emerson+tom,@.@+emerson,@.@)

then say:

   $no-concur-sess !everyone-!me

which would allow me to use concurrent logons for the specific
user "tom.emerson", or any session of "tom" or "emerson" -- EVERYONE else
would be excluded.

tom

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2