Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with "hardware" files #59

Closed
ChausseBenjamin opened this issue Dec 1, 2020 · 2 comments
Closed

Does not work with "hardware" files #59

ChausseBenjamin opened this issue Dec 1, 2020 · 2 comments

Comments

@ChausseBenjamin
Copy link

ChausseBenjamin commented Dec 1, 2020

I want to run print out my laptop's battery percentage whenever it changes.
I tried running echo "/sys/class/power_supply/BAT0/capacity" | entr cat /_" but it only
executes once.
Why is that?
Thanks!

@eradman
Copy link
Owner

eradman commented Dec 1, 2020

Unfortunately inotify(7) only supports "regular" files not devices and files used as an API. It's a limitation in the kernel.

You're not the first one to notice this, but there's no way around it

@ChausseBenjamin
Copy link
Author

Oh ok! Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants