On Fri, Nov 11, 2011 at 12:38 PM, Eric Blake <address@hidden> wrote:
>
> On 11/11/2011 11:36 AM, Peng Yu wrote:
>> Hi,
>>
>> I'm wondering if there is a way to make a temp fifo. I could use the
>> following to generate a temp fifo. But I'm wondering what is the
>> safest way to generate a temp fifo.
>
> dir=$(mktemp -d)
> file=$dir/file
> mkfifo $file
>
> <do something>
>
> rm -rf $dir
Why a temp directory has to be created?
> This discussion has come up before in the mailing lists; search the
> archives.
Nothing returns when I searched. Did I do something wrong.
http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=temp+and+fifo&submit=Search!&idxname=coreutils&max=20&result=normal&sort=score
--
Regards,
Peng