你是否在谈论命名管道? mkfifo pipe ls -l >pipe #type this is one shell cat <pipe #type this is another one 没有人写作,就没有读者。 没有读者,就没有人写作。
这应该能帮助您入门,示例是用C编写的,但相同的技术也适用于bash。只需在Google或此处搜索命名管道,就会出现许多特定于bash的示例。 http://developers.sun.com/solaris/articles/named_pipes.html