Re: How do I make a circular pipe?

2001-04-17 Thread johan . adolfsson
Can't you do it like this? # mkfifo fifo # pppd notty < fifo | pppoe -I eth1 >fifo /Johan - Original Message - From: Rob Landley <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 14, 2001 3:05 AM Subject: How do I make a circular pipe? > How

Re: How do I make a circular pipe?

2001-04-17 Thread johan . adolfsson
Can't you do it like this? # mkfifo fifo # pppd notty fifo | pppoe -I eth1 fifo /Johan - Original Message - From: Rob Landley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 14, 2001 3:05 AM Subject: How do I make a circular pipe? How do I do the following: # -- pppd

Re: How do I make a circular pipe?

2001-04-14 Thread bert hubert
On Sat, Apr 14, 2001 at 10:44:46AM -0700, Rob Landley wrote: > Info. Never thought to check info. Here I am > checking linuxdoc's howtos, man pages, and google... > Sigh... I don't suppose there's an info2html tool > anywhere? 'pinfo' can also be very useful - looks a lot like lynx, but

Re: How do I make a circular pipe?

2001-04-14 Thread Rob Landley
> > Apparently, the pipe > > fd's evaporate when the process does an execve. > > Check out: > > #include > #include > >/* ... */ > > fcntl (fd, F_SETFD, (long) FD_CLOEXEC); > > to set/reset the close on exec bit. Cool. That's EXACTLY what I was looking

Re: How do I make a circular pipe?

2001-04-14 Thread Rob Landley
Apparently, the pipe fd's evaporate when the process does an execve. Check out: #include unistd.h #include fcntl.h /* ... */ fcntl (fd, F_SETFD, (long) FD_CLOEXEC); to set/reset the close on exec bit. Cool. That's EXACTLY what I was looking

Re: How do I make a circular pipe?

2001-04-14 Thread bert hubert
On Sat, Apr 14, 2001 at 10:44:46AM -0700, Rob Landley wrote: Info. Never thought to check info. Here I am checking linuxdoc's howtos, man pages, and google... Sigh... I don't suppose there's an info2html tool anywhere? 'pinfo' can also be very useful - looks a lot like lynx, but

Re: How do I make a circular pipe?

2001-04-13 Thread Michael Meissner
On Fri, Apr 13, 2001 at 06:05:04PM -0700, Rob Landley wrote: > How do I do the following: > > # --> pppd notty | pppoe -I eth1 | -- >|_| > > I.E. connect the stdout of a process (or chain > thereof) to its own stdin? > > So I wrote a program to do it,

How do I make a circular pipe?

2001-04-13 Thread Rob Landley
How do I do the following: # --> pppd notty | pppoe -I eth1 | -- |_| I.E. connect the stdout of a process (or chain thereof) to its own stdin? So I wrote a program to do it, along the lines of: sixty-nine /bin/sh -c "pppd notty | pppoe -I eth1" With an

How do I make a circular pipe?

2001-04-13 Thread Rob Landley
How do I do the following: # -- pppd notty | pppoe -I eth1 | -- |_| I.E. connect the stdout of a process (or chain thereof) to its own stdin? So I wrote a program to do it, along the lines of: sixty-nine /bin/sh -c "pppd notty | pppoe -I eth1" With an

Re: How do I make a circular pipe?

2001-04-13 Thread Michael Meissner
On Fri, Apr 13, 2001 at 06:05:04PM -0700, Rob Landley wrote: How do I do the following: # -- pppd notty | pppoe -I eth1 | -- |_| I.E. connect the stdout of a process (or chain thereof) to its own stdin? So I wrote a program to do it, along the