The answer:
use 'who -Mm' instead of 'who -M'
Thanks to:
Tom Blinn
Jie Gao
Tom Webster
Bob Sloane
and others whose replies I may not yet have received.
Comment: the output of who _may_ have indeed changed between 4.0B and 4.0F
and hence broken my script, and I once again looked on the man page for the
wrong OS (Solaris 7...). I had always considered the options to 'who' as
mutually exclusive since they give such different kinds of information.
Original Post:
>Date: Wed, 12 Jan 2000 16:00:14 -0600
>To: tru64-unix-managers_at_ornl.gov
>From: Chad Price <cprice_at_molbio.unmc.edu>
>Subject: Who command
>
>
>If I recall, under 4.0B, 'who -M' returned only the line containing the
>current logged in terminal with the machine name associated with it.
>
>I'm now running 4.0F. 'who -M' now seems to return info on all users
>currently logged in.... The manual page reads otherwise.
>
>Is this a change to match some requirements document somewhere or is it an
>error?
>
>(The real problem - I've been using a script to set the DISPLAY variable
>for my X users, and it no longer works.... )
>
>The script (under csh/tcsh) is:
> setenv DISPLAY `who -M |grep $USER |awk '{print $6}'|tr -d
> '[()]'`:0.0
Chad Price
Systems Manager, Genetic Sequence Analysis Facility
University of Nebraska Medical Center
986495 Nebraska Medical Center
Omaha, NE 68506-6495
cprice_at_molbio.unmc.edu
(402) 559-9527
(402) 559-4077 (FAX)
Received on Thu Jan 13 2000 - 00:06:52 NZDT