- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Who command problem
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-28-2006 02:28 AM
02-28-2006 02:28 AM
Who command problem
we used to manage user maximum sessions allowed by using "who command".
Some of our users .profile scripts manage user sessions with a command line similar to this atached:
taller='who|cut -c1-6|grep taller|wc -l'
We discover today that some user sessions are not reported by who command... i.e. whe launched 3 taller user sessions and "who" reports only one line containing info about taller.
Can anyone help? This mechanism is working for a few years (5) without a problem.
HPUX version is 10.20.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 02:33 AM
02-28-2006 02:33 AM
Re: Who command problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 02:37 AM
02-28-2006 02:37 AM
Re: Who command problem
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 02:42 AM
02-28-2006 02:42 AM
Re: Who command problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 02:43 AM
02-28-2006 02:43 AM
Re: Who command problem
'who|awk '{print $1}'|grep taller|wc -l'
What about using last?
last |grep logged |grep taller |wc -l
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2006 02:55 AM
02-28-2006 02:55 AM
Re: Who command problem
So I can reset utmp file with a simply echo > /etc/utmp?
From the moment utmp is null, who does not return any value until some user log into the system?
Geoff:
'who|awk '{print $1}'|grep taller|wc -l'
It won´t because who returns only a taler user line.
What about using last?
ast |grep logged |grep taller |wc -l
I guess it could work.
Thanks