interprocess-communication with named pipes
create the FIFO in a way that only the current user can access it.
make sure file is still a FIFO and has correct permissions
read from fifo untill timeout. If timeout is 0 it will wait forever for input.
write to fifo untill timeout. If timeout is 0 it will wait forever for an other process that will read this.