unix - Telnet Host in a single line without password -


how telnet host port in script not have give login name , password manually.

for example

telnet host 2000 login: password:  

i want use in shell script, how can avoid user login , password or how pass in single line?

you appear talking ibm tivoli netcool/impact or router product (clarification should have been provided in question).

the rsh , rlogin programs designed work in manner, using .rhosts file. while (including telnet) have been replaced ssh, still usable. telnet-oriented products (such router) document accept either type of connection.

telnet , rlogin not synonymous - can read more here: difference between rlogin , telnet

as noted in comments, question former (netcool/impact), , not accept rlogin connect. (from other comments), might try using expect. if have administrative rights (or cooperative administrator), there rpms expect , dependencies on perlz.org:


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -