LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] vanquishing the daemons of shell scripting

[ILUG] vanquishing the daemons of shell scripting

Kenn Humborg kenn at linux.ie
Sat Jul 20 12:19:47 IST 2002


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?

Later
Kenn





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell