Re: Telnet program. It really works!!!!!

2000-05-08 Thread Matt Fahrner
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]>

Re: Telnet program. It really works!!!!!

2000-05-06 Thread JM
. 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

Re: Telnet program

2000-05-05 Thread John Summerfield
> 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.

Re: Telnet program

2000-05-04 Thread Greg Wright
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,

Re: Telnet program

2000-05-04 Thread John Summerfield
> 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

Re: Telnet program

2000-05-03 Thread Matt Fahrner
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)

Re: Telnet program

2000-05-03 Thread JM
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

Re: Telnet program

2000-05-02 Thread Matt Fahrner
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'

Telnet program

2000-05-02 Thread JM
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