clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Aug. 03 2006,14:22 |
|
yiddea, I believe you can use the cat command to accomplish something close what you want. I had some problems with my telnet prompts when I tried this, but by redirecting the output of telnet to stderr I could see the output:
make a file of your initial telnet commands called myscript
Use this command line to pipe the text from that script into telnet:
cat myscript - | telnet > /dev/stderr
cat concatenates (joins) two files and the hyphen takes input from the standard input (the keyboard). Then the output of telnet gets redirected from stdout to stderr so it doesn't get caught by the cat - command.
|