From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079271218525.tru64-unix-managers.marc@archive.invalid> From: Chad Price Date: Thu, 13 Jan 2000 00:07:34 +0000 To: tru64-unix-managers Subject: SUMMARY: who command X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079271218525 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@ornl.gov >From: Chad Price >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@molbio.unmc.edu (402) 559-9527 (402) 559-4077 (FAX)