06-22-2006
Hi all,
Sorry for late reply and thanks for your advise.
This is exactly the problem I am facing now. But it is not necessary user logout abnormally, sometime could be due to network connection failure and caused the application ended. I noticed that the shell and the application PID are both still active. Below are some typical example that extract from server.
root# who |grep 10.1.1.144
jbmkt1 pts/82 Jun 22 11:11 (10.1.1.144)
jbmkt1 pts/83 Jun 22 09:50 (10.1.1.144)
jbmkt1 pts/226 Jun 22 10:34 (10.1.1.144)
jbmkt1 pts/249 Jun 22 10:53 (10.1.1.144)
root@ # ps -ef |grep db |grep jbmkt1
jbmkt1 20432 20331 2 10:53:34 pts/249 0:52 /u/recital/db.exe -x menu
jbmkt1 22156 22089 0 11:11:46 pts/82 0:00 /u/recital/db.exe -x menu
jbmkt1 17993 17948 2 10:34:44 pts/226 0:54 /u/recital/db.exe -x menu
jbmkt1 10055 9955 2 09:50:55 pts/83 2:27 /u/recital/db.exe -x menu
root # ps -u jbmkt1
9955 pts/83 0:00 sh
20432 pts/249 1:00 db.exe
22156 pts/82 0:00 db.exe
20331 pts/249 0:00 sh
22089 pts/82 0:00 sh
17948 pts/226 0:00 sh
17993 pts/226 1:03 db.exe
10055 pts/83 2:37 db.exe
from the above you can see those logins earlier have ended abnormally due to network problem, but the session seems still active for both shell and application, I will have to manually verify and kill those inactive session, if not the load will getting higher and slower.
This is what I meant, but if you based on the count, it is also appropriate, right ?
Please advise further.
Have a nice day.
Thanks & Rgds
T.W.Low
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi,
plz tell me, how can get the inactive pages in HP UX.
bye.... (1 Reply)
Discussion started by: venkat_t
1 Replies
2. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
3. Shell Programming and Scripting
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies
4. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
5. HP-UX
Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies
6. Shell Programming and Scripting
Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies
7. Solaris
what is the difference between desktop session and console session in solaris
as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies
PTS_QUIT(1) AFS Command Reference PTS_QUIT(1)
NAME
pts_quit - Exit from pts interactive mode
SYNOPSIS
pts quit [-cell] <cell name> [-noauth] [-localauth]
[-force]
pts q [-c] <cell name> [-n] [-l] [-f]
DESCRIPTION
The pts quit command exits from pts interactive mode. The command can be run from the command line or interactively, but on the command
line it does nothing and is therefore of questionable utility.
CAUTIONS
Prior to OpenAFS 1.4.5 and OpenAFS 1.5.23, the pts quit command was only available on Unix or Linux and when OpenAFS was compiled with the
supergroups option (disabled by default). As of OpenAFS 1.4.5 and 1.5.23, it is always available.
OPTIONS
Although they have no effect, pts quit takes the following standard pts options:
-cell <cell name>
Names the cell in which to run the command. For more details, see pts(1).
-force
Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the
first error.
-help
Prints the online help for this command. All other valid options are ignored.
-localauth
Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or
-noauth options. For more details, see pts(1).
-noauth
Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1).
OUTPUT
This command produces no output.
EXAMPLES
Here is an example of a pts interactive session:
% pts interactive
pts> quit
%
SEE ALSO
pts(1), pts_interactive(1)
COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com>
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for
OpenAFS.
OpenAFS 2014-04-08 PTS_QUIT(1)