Off the top of my head I think you want something like,<br><br>if {-d /this/subdir} <br>echo BBVAR=green<br>else<br>echo BBVAR=red<br><br>I'm sure I'm missing a lot, not looking at it right now.  Pretty sure -d tests directories.<br>

<br clear="all">Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.<br>--- Henry Spencer<br>


<br><br><div class="gmail_quote">On Tue, Mar 31, 2009 at 10:29 AM, dOCtoR MADneSs <span dir="ltr"><<a href="mailto:doctor@makelofine.org">doctor@makelofine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<br>
Xymon allow me to test the non existence of file or directory. But I'd like a more complex test. In my case, I don't want any directory named _FIXED_PART_anything in a whole tree.<br>
Example :<br>
<br>
I've<br>
/toto/_FIXED_PART_1 -> test is red<br>
/toto/a/sub/directory/_FIXED_PART_hello_world -> test is red<br>
<br>
So, is there a "normal" way to use "files"  test included in xymon ?<br>
<br>
Regards,<br>
Damien<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</blockquote></div><br>