- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who -um command help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:00 AM
02-16-2005 10:00 AM
I am trying to set DISPLAY for my session using the following command.
setenv DISPLAY `who -um |awk '{print $8}'
Some reason, this command fails with the error
`who -um |awk '{print $8}'`:0.0: Ambiguous.
I checked the command who -um and I am getting more than one record. Interesting part is I logged in as opapps, but it also returns acsXX sessions too.
acsqa pts/tC Feb 16 02:25 . 6782 ???.???.???.???
acsqa pts/tC Feb 16 07:25 . 13056 xxxxx.xxx.xxxx.com
acs pts/tC Jan 18 11:30 . 25693 xxxxx.xxx.xxxx.com
opapps pts/tC Feb 16 20:34 . 11517 xxxxx.xxx.xxx.com
Can some body explain me why? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:04 AM
02-16-2005 10:04 AM
Re: who -um command help
You might try a:
who am i -um
(Note that there are spaces in the above command.) I don't know if that'll behave any better for you or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 09:50 PM
02-16-2005 09:50 PM
Re: who -um command help
we use:
export DISPLAY=`who -Rm|cut -f2 -d"("|cut -f1 -d")"`:0.0;
Does this work for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 10:53 PM
02-16-2005 10:53 PM
Re: who -um command help
Looks like you'll just have to grep for what you want, and possibly also grep -v what you don't want.
e.g.
export DISPLAY=`who -Rm|grep `whoami`|grep -v