<div dir="ltr"><div class="gmail_extra">On 5 July 2013 23:43, Operaciones <span dir="ltr"><<a href="mailto:operaciones@corpresa.com" target="_blank">operaciones@corpresa.com</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="Ubuntu">So, when i run the script with xymon, show the error:<br>
      <br>
      ERROR: you must be root</font></blockquote></div><br>What I generally do in these cases is run the command from root's cron and capture the output in a file that's readable by the Xymon user.  Like so:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">*/5 * * * * /sbin/dmraid -r >/tmp/dmraid.out && chgrp xymon /tmp/dmraid.out && chmod 644 /tmp/dmraid.out</div><div class="gmail_extra"><br></div>

<div class="gmail_extra">Then in the script, in place of "dmraid -r" you just do "cat /tmp/dmraid.out".</div><div class="gmail_extra"><br></div><div class="gmail_extra">J</div><div class="gmail_extra">

<br></div></div>