Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

A generic function/framework/mechanism for regular polling of data?



Hi all,

I was wondering if a function existed that will use a pattern, target
variables, interval & a data source for polling & parsing information
regularly.

For example, this function could be told to poll ACPI power status
every X seconds and put the result into $foo. The same function
could also keep track of unread mail, the temperature of CPU, HDD,
etc and pretty much antything else you can get from a file or
program and put all of those values into variables.

Does any function like this exist?


Richard



Messages sorted by: Reverse Date, Date, Thread, Author