Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a pipe to read write from telnet

Status
Not open for further replies.

rjr9999

Programmer
Apr 7, 2001
183
US
I feel stupid now, but I just can't figure it out. I need to be able to communicate with the standard telnet app that comes with winXP. I know I have to do something with pipes, but I can't quite figure it out. If anyone could give me some sample code to point me in the right direction, it would be much appreciated.

Thanks, Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
bump (For a THIRD time...this is getting real old, real fast people) Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
Perhaps ypu could explain in greater detail what you are trying to achieve.
 
I want to be able to read the STDIN, STDOUT, STDERR from the telnet app without actually extracting it. In otherwords, it will be a quasi-telnet client. What I plan to do is create a scripting language of sorts to respond to information passed to and from the telnet session. I hope this isn't too confusing..here's an example -

Telnet app:

open place.com 1234
> STDOUT from Telnet app: Username:
> STDIN to Telnet app: annonymous
> STDOUT from Telnet app: Password:
> STDIN to Telnet app: mypassword
> STDOUT from Telnet app: Welcome to telnet.

VB app:
Respond to STDOUT of "Welcome" with Send("ls -l")

STDIN to Telnet app: ls - l

etc. etc.

Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top