You can try to redirect the output of your RFID program to a FIFO instead of stdin
, and read it in your daemon.
How can I listen to the stdin through daemon thread
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow