time out for a Client application


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users time out for a Client application
# 1  
Old 06-06-2007
Bug time out for a Client application

Hi ,

I have a Application running on unix ,

how could i log out the user if the user doest use the application for specified period of time .

using TMOUT it log out the session but with $prompt.

But here i am inside the application , i would like to logout the user from application and come to $ prompt and then log out from the session,

Is there any way to do this UNIX.

Many thanks in advance
naren
# 2  
Old 06-06-2007
Generally yes : lsof | grep user | grep application-name
Then you'll find the PID and kill it.
# 3  
Old 06-07-2007
Quote:
Originally Posted by naren_chella
But here i am inside the application , i would like to logout the user from application and come to $ prompt and then log out from the session,
It's rather rude to do so...., that said, you can send a signal to all processes belonging to your terminal session.

From the Linux manpage for kill..
Code:
       If pid equals -1, then sig is sent to every process for which the calling process has permission  to  send  signals,  except  for  process  1
       (init), but see below.

       If  pid  is less than -1, then sig is sent to every process in the process group -pid.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SuSE

How to configure sntp client with multiple time sources?

Hi, What is the syntax to configure sntp client to have multiple time sources? I tried to use the below syntax, but when the src1 is not reachable, the sntp does not even try to sync to src2: # /usr/sbin/sntp -P no -r src1 src2 sntp: receive timed out after 3 seconds sntp: receive timed... (0 Replies)
Discussion started by: Juha
0 Replies

2. Programming

CA Siteminder offline authentication for a thick client(swing java) application.

Hi All, I have a thick client based on swing java and we are using CA SiteMinder for the authentication. Now we have new requirement in which we need to access the application when its offline. So is there any way that I can use siteminder for offline authenticaion? I mean can we store... (0 Replies)
Discussion started by: chacko193
0 Replies

3. Ubuntu

rdesktop single application mode VMware Vsphere Client

I have tried every possibilty that I can think of and cant get rdesktop using single application mode to work. I have tried with paths and without. Testing other apps: rdesktop -u username -p password -d localdomain.local -g 1024x768 -s 'notepad.exe' 10.7.0.14 rdesktop -g 1024x768... (0 Replies)
Discussion started by: metallica1973
0 Replies

4. Solaris

Locate NFS "not responding still trying" application on client

At times I have unknown applications that hang for long periods of time over and over again after a network glitch. These are sometimes nfs4 but usually nfs3 clients and are always solaris10 systems. nfs: NFS server hostname not responding still trying nfs: NFS server hostname ok nfs: NFS... (1 Reply)
Discussion started by: HPAVC
1 Replies

5. Programming

Client/Server Socket Application - Preventing Client from quitting on server crash

Problem - Linux Client/Server Socket Application: Preventing Client from quitting on server crash Hi, I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64. I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies

6. UNIX for Dummies Questions & Answers

Setting time from application

Hello all, I wish to set the time and date of the system from my application. (I write code in C ). How can it be done? I found the function stime() - but it gets time in seconds as a parameter, and I don't know how to convert my time & date to seconds since EPOCH. What's the best... (0 Replies)
Discussion started by: klafte
0 Replies

7. UNIX for Dummies Questions & Answers

Running server side application on client demand

Ive written a java based "webscraper to rss feed" which resides on my college web space when I execute the app from putty it creates the feed and sets the permissions perfectly.I then wrote a php script to execute the app on demand from the browser using ... system("java -cp... (1 Reply)
Discussion started by: gleesonger
1 Replies

8. Solaris

takes time to connect my application

getting delayed to connect to my database in solaris Does anyone help me to get out of this issue help will be more appreciated. (2 Replies)
Discussion started by: Gods_help
2 Replies

9. Solaris

One time network boot of Jumpstart x86 client

I am trying to find an approach that has been effective for automating the installation of Solaris 10 x86 using Jumpstart technology. I have configured an Jumpstart server and a Solaris dhcp server with appropriate macros for passing the client information about its boot environment. The problem is... (7 Replies)
Discussion started by: chajo19
7 Replies

10. Programming

Server - Client application problem

hi all I'm beginner in CORBA Server-Client appliction development. My server- client application was worked well and i have tested it too. Due to some Network problem we have rebooted our dedicated server , then i restart my corba service, application in the server it started... (0 Replies)
Discussion started by: VijayakumarN
0 Replies
Login or Register to Ask a Question