Xymon Mailing List Archive search

File monitoring with `date` in filename

list Jeremy Laidman
Fri, 27 Sep 2013 17:47:58 +1000
Message-Id: <user-39c484c7d650@xymon.invalid>

On 27 September 2013 17:27, Rolf Schrittenlocher <
user-4b3b4051a09b@xymon.invalid> wrote:
I still have no idea what the bourne shell is doing on the client. Xymon
user uses bash, maybe the error is the result of some other script using sh
and not related to the file problem.

I think I worked it out.  The first line in "xymonclient.sh" is
"#!/bin/sh".  So doesn't matter what the xymon user's shell is, the script
runs under bourne shell.  Under Linux, /bin/sh is actually a symlink to
bash so the $() works.  But on other systems where /bin/sh is actually a
real bourne shell, you gotta do the bash work-around.

J