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

This discussion has come up before in the mailing lists; search the
archives.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to