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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing script to telnet remote machine without prompting?

Status
Not open for further replies.

alphaaa

Technical User
Jan 15, 2002
45
US
I'm trying to invoke telnet from a korn shell scriptand run a command on a remote host. But it gets out of the korn shell script and prompt me for login and password.
Can somebody provide me the code that will log me in without prompting for login and password and execute a command on the host machine.

 
I use rsh for this purpose. Modify the .rhost file in the home directory of the user on the receiving machine to add the sending machine name so that you are not prompted for password. Be careful for security breach this may cause. Too bad I.T. is not cash business

Luc Foata
Unix sysadmin, Oracle DBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top