0

I done some quicky web searches to find out how to make a named pipe. It looks very straight forward I just need to execute as root: mkfifo filename, but what the best practice on where on the filesystem to put named pipes? Should they go into /tmp, /var/tmp, /var/lib or somewhere else? Also should I follow any naming convention or is there names I should avoid?

Thanks!

Red Cricket
  • 470
  • 2
  • 8
  • 21

1 Answers1

1

There is no "standard" per se, but it ultimately depends on what you are doing. If you are writing an application that will use a named pipe as an interface, they tend to go into /var/run/.

The good news is that it's really entirely up to you - it mostly depends on who should have access to it and who shouldn't. It's important to make sure it's in a directory that will help enforce the proper permissions to your application/script that you are running.

Eirik Toft
  • 834
  • 9
  • 20