> > > Yeah, but you can use it to talk to the telnet on the local
> > > system, which in turn will talk to telnetd on the remote
> > > system ...
> >
> > No. There is NO mention of AF_UNIX in the telnet source code. This is
> > completely wrong.
> >
> > Telnet uses AF_INET and AF_INET6.
>
> Wh
- Original Message -
From: Alan Shutko <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 24, 2000 12:12
Subject: Re: Fork and Pipe
> "Julie" <[EMAIL PROTECTED]> writes:
>
> > Rather than explain it to you I'll let you figu
Tim Hockin <[EMAIL PROTECTED]> writes:
> popen() is fine if you are doing an exec, want stdio buffering, and only
> want to read or only want to write. (isn't popen a one-way pipe..?).
Whoops, you're right. I had it in my mind it created two pipes, but
it doesn't.
> I'd never use ptys for th
> > Rather than explain it to you I'll let you figure it out. You may
> > =never= figure it out, but maybe when you've been working on
> > UNIX internals for 20 years you'll learn to be more creative ...
>
> Then I'll ask a different question. Why use socketpair instead of
> using popen or ptys
There are some good FAQs at:
ftp://rtfm.mit.edu/pub/usenet/comp.lang.c/
ftp://rtfm.mit.edu/pub/usenet/comp.unix.programmer/
--
Andrew E. Mileski - Software Engineer
REBEL.COM http://www.rebel.com/
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
> > Yeah, but you can use it to talk to the telnet on the local
> > system, which in turn will talk to telnetd on the remote
> > system ...
>
> No. There is NO mention of AF_UNIX in the telnet source code. This is
> completely wrong.
>
> Telnet uses AF_INET and AF_INET6.
Why don't you go back
"Julie" <[EMAIL PROTECTED]> writes:
> Rather than explain it to you I'll let you figure it out. You may
> =never= figure it out, but maybe when you've been working on
> UNIX internals for 20 years you'll learn to be more creative ...
Then I'll ask a different question. Why use socketpair inste
From: John Summerfield <[EMAIL PROTECTED]>
> > John Summerfield <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > > I must write a program in C to automate a telnet login to a remote
=
> > > > > system, execute some tests
> > > > > and pipe the output ba
>
> John Summerfield <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > I must write a program in C to automate a telnet login to a remote =
> > > > system, execute some tests
> > > > and pipe the output back to parent.
> > > > Does anyone know how to setu
John Summerfield <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I must write a program in C to automate a telnet login to a remote =
> > > system, execute some tests
> > > and pipe the output back to parent.
> > > Does anyone know how to setup a two-way pi
> > I must write a program in C to automate a telnet login to a remote =
> > system, execute some tests
> > and pipe the output back to parent.
> > Does anyone know how to setup a two-way pipe between parent and child =
> > processes in a=20
> > C program that both can send and receive signals??
>
> I must write a program in C to automate a telnet login to a remote =
> system, execute some tests
> and pipe the output back to parent.
> Does anyone know how to setup a two-way pipe between parent and child =
> processes in a=20
> C program that both can send and receive signals??
man socketpa
There's an example below. As far as sending signals go you'd either have
to do it through your own proprietary messages through the pipes or you
can signal out of band using "kill()" and "signal()" calls. There is no
inherent OS method of signaling through a pipe itself.
Matt Fahrner
Manager of N
13 matches
Mail list logo