1
votes

I have a self made keyboard, which I would like to read out in a bash script. The keyboard location is /dev/input/event1

I'm trying to read this input in bash via

read input </dev/input/event1

but that does not seems to work.

Any ideas?

Thanks!

1

1 Answers

0
votes

Input events in Linux are raw binary data; reading them in bash will require a lot of post-processing. Consider using a programming language that has at least basic handling of raw binary data.