t window
> displays all hidden characters of the telnet output.
>
> Login: c/r
> Passwd: c/r
> c/r
> $
>
> Thanks again for your help.
>
> John
>
> - Original Message -
> From: Matt Fahrner <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
.
John
- Original Message -
From: Matt Fahrner <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 03, 2000 11:03 AM
Subject: Re: Telnet program
> Ok then, the best I can do is give some pseudo-code:
>
> - Program starts.
> - Create two pipes wit
> Expect is probably the best way :-) works on FTP so telnet should not be
> an issue
ftp is not a good example; ftp works with simple redirection whereas
telnet does not.
However, expect does indeed work with telnet as I mentioned in another
post.
--
Cheers
John Summerfield
http://os2.ami.
Expect is probably the best way :-) works on FTP so telnet should not be
an issue
--
Greg Wright
IT Consultant Sydney Australia PH 0418 292020
Available for Global Contracts Int. +61 418 292020
web http://www.ausit.come-mail [EMAIL PROTECTED]
T/A AAA Computers & ITpro & Ozzie Soft,
> Hi Matt, your first assumption was correct. I just want to write a C
> program
> that use a combination of fork and pipe to run "/usr/bin/telnet" and send
> and receive commands/data via telnet pipes. What I am after is I want to
> be able to create a two way pipes, telnet from a local UNIX mac
Ok then, the best I can do is give some pseudo-code:
- Program starts.
- Create two pipes with pipe() calls.
- fork()
- Child chooses one pipe and dup2()'s the read end over descriptor 0
(stdin)
- Child takes other pipe and dup2()'s the write end over descriptor 1
(stdout)
al Message -
From: Matt Fahrner <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 10:23 AM
Subject: Re: Telnet program
> I think everyone's assumption was that you would not "write a telnet
> program" but rather use a combination of fork and pi
I think everyone's assumption was that you would not "write a telnet
program" but rather use a combination of fork and pipe to run
"/usr/bin/telnet" and then send/recieve commands/data to telnet though
the pipes you have open.
If I'm now reading this right you'
creates
both parent and child which both can send and
receive data. This example
helps a little but I still do not know how to write
a basic telnet program.
Can you help?
Thanks
John