On 27/07/2009, Federico Giannici <[email protected]> wrote:
> I'm using for the first time sensorsd to monitor RAID controller status and
> motherboard temperature. A script of mine is called that sends me an email.
> System is OpenBSD 4.4 amd64.
>
>  The problem is the value of the %2 %3 and %4 tokens passed as arguments to
> the command. I thought that they should be (in the same order): current
> temperature, low limit and high limit as set in the sensorsd.conf file.
>
>  Indeed here are the values I get:
>
>  %2: 46.00
>  %3: degC
>  %4: 9223372036581.62
>
>  The command I use is "command=/path/scriptname %x %n %l %2 %3 %4".
>
>  Is there some bug or I'm missing something?

%2 can never return "46.00" alone, what it must be returning is "46.00
degC".  Same goes for the rest of the tokens.

So perhaps the invocation of the script has to have some quotes around these.

C.

Reply via email to