From: Kenn Humborg (kenn at domain linux.ie)
Date: Sat 20 Jul 2002 - 12:19:47 IST
On Sat, Jul 20, 2002 at 10:47:36AM +0100, Stephen Shirley wrote:
> It's very easy to get one program to act on the output of a second
> program: cmd1 | cmd2. But, what if you want cmd1 to act on the output of
> cmd2 as well? Hmm. Eventually, I came up with this solution:
> mkfifo io
> cmd1 <io | cmd2 > io
> mine, and i is happy person once again. In case you were wondering, the
> aim of all of this was to write a shell script that could check for new
> mail on an imap server.
Doesn't answer your question, but perhaps a combination of expect and
(netcat or telnet) might have made for an easier solution?
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:59 GMT