- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- the output of the 'w' command
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-25-2004 02:28 PM
02-25-2004 02:28 PM
#w
11:15 up 10 days, 14:44, 33 users, load average: 0.00, 0.00, 0.00
User tty from what
tfdcz t0 runmenu50x -c
xqz p1 10.137.72.66 runmenu50x -c
zbzz p2 10.137.72.66 runmenu50x -c
The user 'xqz' and 'zbzz' have the same ip address,and the user 'xqz' has logged out.What is the matter?Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 04:43 PM
02-25-2004 04:43 PM
Solutionboth the users have logged in from the same machine (10.137.72.66).
$ w
18:43 up 15 days, 2 mins, 2 users, load average: 0.01, 0.00, 0.00
User tty from login@ idle JCPU PCPU what
root pts/1 BENAKA-udp290969 18:41 1 -sh
mqm pts/2 BENAKA-udp290969 18:42 w
in this my machine users root and mqm have logged in from same machine named BENAKA.
when the user root logged out
$ w
18:43 up 15 days, 2 mins, 1 user, load average: 0.01, 0.00, 0.00
User tty from login@ idle JCPU PCPU what
mqm pts/2 BENAKA-udp290969 18:42 w
user root will not be shown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 05:14 PM
02-25-2004 05:14 PM
Re: the output of the 'w' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 05:23 PM
02-25-2004 05:23 PM
Re: the output of the 'w' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 05:38 PM
02-25-2004 05:38 PM
Re: the output of the 'w' command
This is because sometimes even when the users really logged out, file handle allocated to that user by the OS will not be released( it's not a hram at all). after a reboot it will be normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2004 08:22 PM
02-25-2004 08:22 PM
Re: the output of the 'w' command
The user 'xqz' and 'zbzz' have the same ip address
One can have more than one telnet session and login with more than one user.
Usually, if you log out, the programmes you run, are killed. It may however happen, due to a trap in the users profile or the application ignoring the hangup signal, that processes stay.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2004 05:07 PM
02-26-2004 05:07 PM
Re: the output of the 'w' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2004 08:32 PM
02-26-2004 08:32 PM
Re: the output of the 'w' command
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2004 11:50 AM
02-29-2004 11:50 AM
Re: the output of the 'w' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2004 08:28 PM
02-29-2004 08:28 PM
Re: the output of the 'w' command
now I know, you were meaning me. ;-)
Look into the .profile of the users and if there is a trap, which uses 1, take the 1 out.
trap 1 means: ignore hangup signal in the processes, the shell creates.
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 12:10 PM
03-01-2004 12:10 PM
Re: the output of the 'w' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 07:58 PM
03-01-2004 07:58 PM
Re: the output of the 'w' command
The number behind the trap statement are signal numbers, they are defined in /usr/include/signal.h
#define SIGHUP 1 /* hangup, generated when terminal disconnects */
#define SIGINT 2 /* interrupt, generated from terminal special char */
#define SIGQUIT 3 /* (*) quit, generated from terminal special char */
#define SIGILL 4 /* (*) illegal instruction (not reset when caught)*/
#define SIGTRAP 5 /* (*) trace trap (not reset when caught) */
#define SIGABRT 6 /* (*) abort process */
#define SIGEMT 7 /* (*) EMT instruction */
#define SIGFPE 8 /* (*) floating point exception */
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
#define SIGBUS 10 /* (*) bus error (specification exception) */
#define SIGSEGV 11 /* (*) segmentation violation */
........
These are the same number that you would use with the kill command to stop a program in a certain way, eg kill -9 = kill -HUP
Johan.
_JB_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 01:39 PM
03-02-2004 01:39 PM