Link to home
Start Free TrialLog in
Avatar of yairh
yairh

asked on

running script *inside* telnet

How can I run a script inside telnet?
I don't need to wait for an input, just send some text.
I tried "telnet address < script", where script is the script file, but it's too fast and the connection is lost.
I wrote a tiny filter that copies stdin to stdout after sleeping for a few seconds, but it also fails. I use it like this:
"cat script | delay | telnet address"
What am I doing wrong?
ASKER CERTIFIED SOLUTION
Avatar of ragnar
ragnar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial