Run application when user connects with telnet
When I user connects to my telnet server I want it to run an application rather than drop him to a command line.
How might I do that? Thank you! |
A couple of options:
1. call your app as part of the login process (user's bash_profile) 2. Make your app network aware and attach it to the telnet port instead of the telnet server. |
3. You may also set the application as the user's login shell.
|
Actually, that's better than my num 1. :)
|
I added the run command to the bottom of my .bashrc and that worked like a charm. Next I would like the telnet session to disconnect when the application exits. Is that possible?
Thank you! |
Quote:
|
I got it. I just put exit after the application start line in the .bashrc and I'm good to go.
|
Quote:
That is why making the users shell the program works better. |
All times are GMT -5. The time now is 02:41 AM. |