Xymon Mailing List Archive search

clientlaunch.cfg INTERVALs

list Henrik Størner
Wed, 20 Sep 2006 23:10:50 +0200
Message-Id: <user-45801fefcdeb@xymon.invalid>

On Tue, Sep 19, 2006 at 06:11:03AM -0500, Ralph Mitchell wrote:
On 9/19/06, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
That's what I figured, and is no good for this particular ext script that
needs to run at the top of every hour. I suppose I could run it from cron
instead.
I've had a lot of success running Big Brother scripts from cron.  I
now have a Hobbit server running for the display, but I haven't made
time to switch the scripts to the Hobbit environment.

I think you'd just need to:

  source /home/hobbit/server/etc/hobbitserver.cfg

at the top of the script, assuming it's sh-compatible...
Please don't do that. As hobbitserver.cfg says:
  # NB : Even though it might look like a shell-script, it is NOT.

If you want to run scripts with the Hobbit environment set, use the
"bbcmd" utility. E.g. if your script is /usr/local/bin/myfancytest
then run it with
   bbcmd /usr/local/bin/myfancytest


Regards,
Henrik