Sometimes I
cat
a stream like /dev/input/event0
.
I want to write a script that does something every time there is more output.
The definition of more output might be every time it reads a byte.
How can that be done? is there some command that does it?
Asked by Chao Xu
(365 rep)
Mar 5, 2011, 02:16 AM
Last activity: Oct 21, 2024, 09:36 PM
Last activity: Oct 21, 2024, 09:36 PM