Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
A generic function/framework/mechanism for regular polling of data?
- X-seq: zsh-users 13115
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Subject: A generic function/framework/mechanism for regular polling of data?
- Date: Fri, 8 Aug 2008 03:33:44 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=G+/X8obCCa6frRyJcM1QW1w3gYDsC6Hx0l0gNzf0vco=; b=vVbU3lyWB0Tg6zbmWuIm2STbjQKaouwcyaVzjBnPcAZt28bfjfYOopusU/ccr0urR3 vCI3fP2TgKH9ao1cXKXwBfXFfKoCc5pFh6iXBXq+DlOJdZuMkyyyz3xGe4aZK0bWWzJq MGZ0Rr2hQg0nQPdKxa49cpH8eEtJL56iLGkbM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=Fl2aF6Llw49yNbIunm5gETDqaXVrrbxnOZld0F5V0BGm11Q6/WZ4LtGNymyMphlRwQ PyVJ8zR78PCQgsfh1gbzEdXatQ0RUgBMNyAfbpIf6OtrdYj4N2Qy2gDhtRQ+qAsfE+PD Uy7alSzjd0Gkkct9c+eODlwp1OOUZoFtONyms=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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