Xymon Mailing List Archive search

dynamic logfile name

list Jeremy Laidman
Wed, 6 Aug 2014 16:38:11 +1000
Message-Id: <CAAnki7BJgPZtJtx=1K1S=user-e6ed77c8ee7a@xymon.invalid>

On 30/07/2014 4:30 PM, "Oliver" <user-ee1bcc3b4e18@xymon.invalid> wrote:
This syntax works absolutely fine, I've had a typo in the path, so it did
not work yesterday:
For future reference, you can catch some errors by redirecting output to a
file. At the very least the presence of the file tells you that the
scriptlet is being executed.

file:`ls /path/to/server_logs/$(date +%Y%m%d) >/tmp/testfile 2>&1`

J