is it possible to get a script to log me in to, say, a telnet session? i had thought that something along the lines of
might work. i would have login and pass as the first two lines, and then a list of commands to execute on the remote host.
it seems that i should be able to somehow convince telnet that is this file is actually STDIN. any thoughts?
Code:
% telnet host < script
it seems that i should be able to somehow convince telnet that is this file is actually STDIN. any thoughts?