Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The trouble is that, sometimes, the X session stay open after that the user is disconnected (such as when the network link is disconnected)

It occurs in many ways, such as via ltsp or via X11Forwarding with ssh.

How can I detect those sessions with a script and close/kill all the programs that stayed open ?

Thank you !

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.