Question

I have a RFID card connected to a USB port which sends data to stdin.

I would like to run a daemon thread to listen to the port, and gather the data from the USB port, analyze and perform some calculations and write it to a file, but I don't know how.

Was it helpful?

Solution

You can try to redirect the output of your RFID program to a FIFO instead of stdin, and read it in your daemon.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top