The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
takes time to connect my application Gods_help SUN Solaris 2 4 Weeks Ago 09:10 AM
Build a Google Talk Client Using Oracle ADF Faces Rich Client and the Active Data Ser iBot Oracle Updates (RSS) 0 04-18-2008 03:10 PM
R-201: Vulnerabilities in Windows Client/Server Run-time Subsystem (CSRSS) iBot Security Advisories (RSS) 0 03-28-2008 07:40 AM
Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) iBot UNIX and Linux RSS News 0 06-21-2007 01:10 PM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-21-2007 11:20 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2007
Registered User
 

Join Date: Feb 2006
Posts: 35
Smile 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
Reply With Quote
Forum Sponsor
  #2  
Old 06-06-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
Generally yes : lsof | grep user | grep application-name
Then you'll find the PID and kill it.
Reply With Quote
  #3  
Old 06-07-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0