Official disclaimer: I have never used FIFOs, so please don't take what I suggest as gospel, truth, or anything remotely resembling an authoratative response.
I read the man page for mkfifo and it didn't say much other than "use this command to make a fifo"... duh. So I tried:
and got a listing of other commands. Most are C-oriented, but the one you might want to take a look at is:
It says FIFOs are pipes maintained by the kernel that have entries in the filesystem as a "reference point". That's what I love about linux: everything, EVERYTHING, is a file. That means you should be able to access the pipe just like you would access any regular file. Meaning, to write to the FIFO, you probably only have to issue a command like so:
Code:
echo "Server may experience lag from backup process" > /path/to/fifo
Reading from it should be fairly simple as well.
I don't know if it will be an issue for you, but you should have a process trying to read the FIFO before a different process writes to it. The kernel has nowhere to send the write data if nobody is ready to read it.
If this doesn't get you started, and nobody else jumps in, you may be better served asking a similar question in a programming forum. FIFOs are a classic programming language structure. You may get a lot of technical details and a lot of it will probably be geared toward implementing a FIFO in C, but you should be able to get what you need.