At 1237331029 time_t, Nathan Huesken wrote:
> What do you thing? Cool Idea or garbage?

Both.
To monitor regular file, you can use inotify. You should probably
require à Lua module to access this function, but that should not be too
hard to do. However, note that inotify is Linux specific.

OTOH, and AFAIK, inotify won't work for /sys or /proc , because this 2
file systems are not real file sytems and no one is writing your
battery status inside a file; it's when you open it that you go and ask your
battery its status.

Cheers,
-- 
Julien Danjou
// ᐰ <[email protected]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// When I get sad, I stop being sad and be awesome instead. True story.

Attachment: signature.asc
Description: Digital signature

Reply via email to