<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello Roger,<br>
    <br>
    Permissions are as follows :<br>
    -rwxr-xr-- 1 nut nut&nbsp; 124 2010-11-16 17:25 upssched.sh*<br>
    (the folder is owned buy nut:nut too).<br>
    <br>
    I'm quite sure the script is not called because it begins with :<br>
    echo $1 &gt; /etc/nut/sched/test.txt;<br>
    <br>
    ...and the test file is never created.<br>
    <br>
    Just a thought :<br>
    in upsd.conf I listen to 127.0.0.1 and in upsmon.conf I monitor
    localhost, can this cause troubles ?<br>
    <br>
    Many thanks,<br>
    <br>
    R&eacute;mi.<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    On 11/16/10 4:38 PM, Roger Price wrote:
    <blockquote
      cite="mid:alpine.LNX.2.00.1011161631030.21968@glacon2.rogerprice.org"
      type="cite">On Tue, 16 Nov 2010, R&eacute;mi Lavergne wrote:
      <br>
      <br>
      <blockquote type="cite">/etc/nut/upssched.conf :
        <br>
        CMDSCRIPT /etc/nut/sched/upssched.sh (this script exists but
        seems never to be executed...)
        <br>
      </blockquote>
      <br>
      Hello R&eacute;mi, what are the ownership and permissions on file
      <br>
      /etc/nut/sched/upssched.sh ?&nbsp; Try adding the lines
      <br>
      <br>
      &nbsp; # Debugging: Log all calls to this script
      <br>
      &nbsp; logger -t upssched-sh Calling upssched-sh $1
      <br>
      <br>
      at the top of upssched.sh.&nbsp; You will see a trace of the script
      calls in /var/log/messages.
      <br>
      <br>
      Roger<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Nut-upsuser mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a>
<a class="moz-txt-link-freetext" href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser">http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
R&eacute;mi Lavergne
Water &amp; Earth System Science Research Centre
WESS Data Manager
---------------------------------------------------------------
University of T&uuml;bingen
Institute for Geosciences
Sigwartstra&szlig;e 10
72076 Tuebingen (Germany)
---------------------------------------------------------------
Tel : +49 7071 29 73081
Mobile : +49 176 32 12 99 64</pre>
  </body>
</html>