another thing I do is use /bin/ls instead of 'ls', so the file name generated by the backticks won't contain any termcap escape characters or alike.<br><br><div><span class="gmail_quote">On 1/11/07, <b class="gmail_sendername">
Jerry Yu</b> <<a href="mailto:jjj863@gmail.com">jjj863@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">For wildcard, you want '.*' to represent any character instead of '*' alone.  I have a handful of this kind of FILE checks.
<div><span class="e" id="q_11011abcf4957082_1"><br><br><div><span class="gmail_quote">On 1/11/07, <b class="gmail_sendername">Thomas
</b> <<a href="mailto:tlp-hobbit@holme-pedersen.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tlp-hobbit@holme-pedersen.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

hi all,<br><br>Trying to get file monitoring to work. Works find with fixed filenames<br>but I need to match a pattern in a directory and find the oldest file.<br>If more than say 7200 sec old in mtime then generate an alert.
<br><br>in client-local.cfg I have<br><br>file:`ls -t /ftp/input/* | tail -1`<br><br>which produces the oldest file name on the web page.<br><br>I have the following in hobbit-clients.cfg<br><br>   FILE %/ftp/input/*.gz RED mtime<7200
<br><br>but I get no alarms.<br><br>Any ideas ?<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div>
<br>

</span></div></blockquote></div><br>