How to create a script to automatic telnet to a host?
1 2 (sleep 3; echo username; sleep 3; echo password; sleep 5; echo "ls -l"; sleep 3; echo "exit") | telnet hostname
DZone Snippets > levysoft > telnet
12963 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Antonio http://www.levysoft.it
1 2 (sleep 3; echo username; sleep 3; echo password; sleep 5; echo "ls -l"; sleep 3; echo "exit") | telnet hostname