How To Create A Script To Automatic Telnet To A Host?
Join the DZone community and get the full member experience.Join For Free
(sleep 3; echo username; sleep 3; echo password; sleep 5; echo "ls -l"; sleep 3; echo "exit") | telnet hostname
Host (Unix) Telnet
Opinions expressed by DZone contributors are their own.