Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am creating small logic for recording linux users terminal session but for that I need to study whole process of how the linux user login into the system all background process,
all environment variables in this scenario, is there someone who can help me out of this.?
Hello,
I am creating small logic for recording linux users terminal session but for that I need to study whole process of how the linux user login into the system all background process,all environment variables in this scenario, is there someone who can help me out of this.?
But I still haven't got the answer. How can I run "exit" command on users tty when the user hits "X" button of putty..???
That was not the question you asked - not remotely.
That is a putty question, not a Linux login question. You would have to see if putty allows you to issue remote commands in response to actions such as the X button.
But I still haven't got the answer. How can I run "exit" command on users tty when the user hits "X" button of putty..???
...and asking for handouts, rather than reading the abundant research, won't get you the answer either.
Quote:
Originally Posted by suyog1pathak
nope....I am asking for the logic....how can I run exit command while user session closed.
...and if this is YOUR PROGRAM, isn't it up to YOU to write the logic??? And common sense will tell you that you can't run ANY commands if there isn't an active session. This is very much like asking, "How do I load a web page, after I close my browser?"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.