[hobbit] clientlaunch.cfg INTERVALs

Henrik Stoerner henrik at hswn.dk
Wed Sep 20 23:10:50 CEST 2006


On Tue, Sep 19, 2006 at 06:11:03AM -0500, Ralph Mitchell wrote:
> On 9/19/06, Charles Jones <jonescr at cisco.com> 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




More information about the Xymon mailing list