Mailinglist Archive: opensuse (2234 mails)
| < Previous | Next > |
RE: [SLE] Write a script to poll LM_78 sensors periodically?
- From: netadmin@xxxxxxxxx (SurgeNet)
- Date: Mon, 13 Sep 1999 10:15:04 -0400
- Message-id: <NDBBKDGIJMFJGEKBBGPAOEDMCBAA.netadmin@xxxxxxxxx>
Well, if you'd care to use Perl, it would be something like:
#!/usr/bin/perl
while (true)
{
system ("/path/to/sensors > /path/to/sensors.txt");
sleep 20;
}
And, of course, unless you don't want your terminal back while the script
is running, add & to the end of the command.
Hope it's what you're looking for!
Kevin
> From: Stuart Hall [mailto:stuarthall@xxxxxxxxxxxxxxx]
>
> I am trying to write a BASH script that will run a program every 20
> seconds. The program is called "sensors" which polls my cpu
> temperature sensors, but only once. I'd like it to happen repeatedly.
> I am piping the results to a text file (sensors.txt) where root-tail
> is displaying them on my KDE background. right now the results are
> static since I can only run "sensors" manually.
>
> I need help figuring out the following:
>
> 1. How to launch a program based on a specific time period. I have
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
| < Previous | Next > |