Operating System - OpenVMS
1753310 Members
6534 Online
108792 Solutions
New Discussion юеВ

Re: Lmiting SHOW USER output to a specific user

 
SOLVED
Go to solution
Jon Pinkley
Honored Contributor

Lmiting SHOW USER output to a specific user

In VMS 7.2-2 the following would display only processes running under username JON, and not display processes running under username JONES.

$ show user "JON "

This behavior changed sometime after 7.2-2, I went directly from 7.2-2 to 7.3-2 and can't say when the behavior changed, I only know that in 7.3-2 it makes no difference if the string is quoted or not, the trailing space gets trimmed, and the above command shows all usernames that begin with JON.

Does anyone know why the change was made, and if there is some other way to get the old behavior. And it should work for show user/full as well, so pipe and search won't work in the general case, and that's ugly too.

I have a symbol set in my login.com

$ jon == "SHOW USER ""JON """

But it no longer shows only my processes.
it depends
17 REPLIES 17
Karl Rohwedder
Honored Contributor

Re: Lmiting SHOW USER output to a specific user

Jon,

for procedures you may use:

$ PIPE SH US JON | SEARCH SYS$INPUT "JON "

regards kalle
EdgarZamora_1
Respected Contributor

Re: Lmiting SHOW USER output to a specific user

This is the behavior on 8.3:

CLCC> sho us rh
OpenVMS User Processes at 9-AUG-2007 07:50:36.11
Total number of users = 2, number of processes = 6

Username Interactive Subprocess Batch
RHARRIS 1 3 1
RHELGREN 1
CLCC> sho us rh*
OpenVMS User Processes at 9-AUG-2007 07:52:12.96
Total number of users = 2, number of processes = 2

Username Interactive Subprocess Batch
RHARRIS 1
RHELGREN 1
CLCC> sho us "rh "
%SHOW-I-NOSUCHUSER, no processes found for user rh
CLCC> sho us "rh"
%SHOW-I-NOSUCHUSER, no processes found for user rh
CLCC> sho us "rh*"
%SHOW-I-NOSUCHUSER, no processes found for user rh*
Karl Rohwedder
Honored Contributor

Re: Lmiting SHOW USER output to a specific user

Edgar,

if you do a

$ sh us "RH*"

it will work, "" makes is case sensitive.

regards Kalle
EdgarZamora_1
Respected Contributor

Re: Lmiting SHOW USER output to a specific user


You learn something new every day.

CLCC> sho us "RH"
OpenVMS User Processes at 9-AUG-2007 08:33:51.14
Total number of users = 2, number of processes = 4

Username Interactive Subprocess Batch
RHARRIS 1
RHELGREN 2 - 1
CLCC> sho us "RH "
OpenVMS User Processes at 9-AUG-2007 08:34:04.15
Total number of users = 2, number of processes = 4

Username Interactive Subprocess Batch
RHARRIS 1
RHELGREN 2 - 1
CLCC> sho us "RH*"
OpenVMS User Processes at 9-AUG-2007 08:34:07.85
Total number of users = 2, number of processes = 4

Username Interactive Subprocess Batch
RHARRIS 1
RHELGREN 2 - 1
CLCC>
Robert Gezelter
Honored Contributor

Re: Lmiting SHOW USER output to a specific user

Karl and Ed,

Without taking the time for independent verification, to my eyes this would appear to be an unintentional behavior (e.g., a bug). The "RH*" syntax makes sense, but the "RH" would appear, particularly since it is reported as a changed behavior, to be an unintended anomaly.

Jon,

In this light, if the information is correct, it would appear that a call to support to "officially" report the anomaly (in all of its variations) would be in order.

- Bob Gezelter, http://www.rlgsc.com
Karl Rohwedder
Honored Contributor

Re: Lmiting SHOW USER output to a specific user

According to the help for SHOW USER:

if you specify a string, all user,which names begin with the string, are displayed.

This was already so at the oldest version, I have at hand: V5.5-2.

regards Kalle
Walter Miller_1
Valued Contributor

Re: Lmiting SHOW USER output to a specific user

Just add a space between the N and the ". That should eliminate any other user names.
Jan van den Ende
Honored Contributor

Re: Lmiting SHOW USER output to a specific user

Jon,

reading this thread just now, I was surprised by the initial statement.

To me it seems to "always" have been so.
Luckilu, for my view of the health of my memory, Kalle came up with the old (5.5-2) HELP text.

The only reasonable explanation I can come up with, is that there never happened to be users JON, except you, in existence (at least not logged in), and now there is.

Just my EUR 0,02

Proost.

Have one on me.

jpe

Don't rust yours pelled jacker to fine doll missed aches.
Jess Goodman
Esteemed Contributor

Re: Lmiting SHOW USER output to a specific user

I tested this on VAX VMS 6.2 and Alpha VMS 6.2-1H3, 7.2-2, and 7.3-2. On all of these using SHOW USER NAME and SHOW USER "NAME" made no difference.

As Walter suggested, you need to use:
$ SHOW USER "NAME "
I have one, but it's personal.