O.K., I'm a programmer who just started last month and I need to know if Telnet has an option to execute a command after it is logged in. Anyone who could help wil be appreciated.
If it helps, commands in /etc/profile and /<users_home_dir>/.profile (ksh shell) are executed immediately when they login. Is this what you require? Regards.
Thanks, Ken. However, I need to execute the command only when someone is logging into the computer while running my remote program. Can something be done in the profile with a conditional statement to make sure it's just MY program?? Thanks again for your help!!
would it be possible for you to use 'rsh' rather than telnet ? 'rsh' connect to the remote host and executes the specified command. However you will need 'permissions' to do this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.