Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet options..... 2

Status
Not open for further replies.

lawsoncs

Technical User
Oct 3, 2001
16
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top