I&#39;m running logcheck on a machine hosting a bunch of virtual machines using vserver, so I&#39;d like to expand shell wildcards in the &quot;logcheck.logfiles&quot; file.&nbsp; So instead of entering<br><br>/var/lib/vservers/v1/var/log/syslog<br>

/var/lib/vservers/v2/var/log/syslog<br>
/var/lib/vservers/v2/var/log/syslog<br><br>I can enter<br><br>/var/lib/vservers/*/var/log/syslog<br><br>which gets expanded to the same thing as above.&nbsp; And this way as I add new virtual machines, their logs get picked up automatically by logcheck.<br>

<br>
To that end I patched the logcheck script as follows<br><br>--- logcheck.orig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2008-01-30 09:31:48.000000000 +0800<br>+++ logcheck&nbsp;&nbsp;&nbsp; 2008-01-30 09:33:17.000000000 +0800<br>@@ -665,7 +665,9 @@<br>&nbsp;&nbsp;&nbsp;&nbsp; || error &quot;Could not mkdir for log files&quot;<br>
&nbsp;if [ ! $LOGFILE ] &amp;&amp; [ -r $LOGFILES_LIST ]; then<br>&nbsp;&nbsp;&nbsp;&nbsp; for file in $(egrep --text -v &quot;(^#|^[[:space:]]*$)&quot; $LOGFILES_LIST); do<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logoutput &quot;$file&quot;<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for line in $(ls -1 &quot;$file&quot;); do<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; logoutput &quot;$line&quot;<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; done<br>&nbsp;&nbsp;&nbsp;&nbsp; done <br>&nbsp;elif [ $LOGFILE ]; then<br>&nbsp;&nbsp;&nbsp;&nbsp; if [ -f $LOGFILE ] &amp;&amp; [ -r $LOGFILE ]; then<br><br>Anyone see any ways that this is going to come back to haunt me?&nbsp; It seems to be working fine, but I&#39;ve thought that before about &quot;great&quot; ideas I&#39;ve had, so... :-)<br>
<br>TIA<br><br>Jeff Jansen<br>