both are ok,since .* is not greedy as in PERL's. The former is preferred since it provides more exact match.<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">
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;">Do you mean like this ?<br><br>FILE %/ftp/input/.*.gz RED mtime<7200 or
<br><br>FILE %/ftp/input/.* RED mtime<7200<br><br>Jerry Yu wrote:<br>> For wildcard, you want '.*' to represent any character instead of '*'<br>> alone.  I have a handful of this kind of FILE checks.
<br>><br>> On 1/11/07, *Thomas * <<a href="mailto:tlp-hobbit@holme-pedersen.dk">tlp-hobbit@holme-pedersen.dk</a><br>> <mailto:<a href="mailto:tlp-hobbit@holme-pedersen.dk">tlp-hobbit@holme-pedersen.dk</a>>> wrote:
<br>><br>>     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">hobbit-unsubscribe@hswn.dk</a> <mailto:<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>><br>><br>><br>><br><br><br>To unsubscribe from the hobbit list, send an e-mail to
<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>