[TriLUG] confessions of a bash junky: the mkfifo command
Brian McCullough
bdmc at bdmcc-us.com
Tue Aug 28 11:20:36 EDT 2007
On Tue, Aug 28, 2007 at 11:14:38AM -0400, jonc at nc.rr.com wrote:
> I write a lot of scripts. I mean a LOT of scripts. If I can solve a problem in 10 to 15 minutes by throwing it into a bash script, then that's what happens. So I *love* bash... unabashedly.
( Groan )
> # Note: the script stays frozen here till the pipe is cleared
> #
> # Another process runs and pulls from the pipe
> #
> # Note2: you can grab from the pipe first - which causes that script
> # to wait for input. Then when the first script runs and loads the buffer
Yup. This is an OLD UNIX trick ( tool, whatever ) used for interprocess
communication both internally and at the command line. ( That's what
implements the "|" in any shell in any of the UN*X-alikes. )
B-)
More information about the TriLUG
mailing list