[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] BB environment variables
- To: hobbit (at) hswn.dk
- Subject: RE: [hobbit] BB environment variables
- From: "Smith, Jim" <JMSmith (at) stvincenthealth.com>
- Date: Mon, 6 Oct 2008 10:29:23 -0600
- References: <48EA3536.9090302 (at) shadowsoft.com> <CF17CBE09EB9E1429C2589486364FD024F6F94 (at) chimsx07.CHI.catholichealth.net> <48EA3A42.9000605 (at) shadowsoft.com>
- Thread-index: AcknzzfcbbC4v8MtQT+6Eu2n1CnKfwAARY0g
- Thread-topic: [hobbit] BB environment variables
Sorry...I was thinking about Big Brother clients.
For Hobbit, you should call your script from "server/etc/
hobbitlaunch.cfg".
I have one like this:
[lvm]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
CMD $BBHOME/ext/bb-lvm.sh
LOGFILE $BBSERVERLOGS/bb-lvm.log
INTERVAL 15m
Jim Smith
________________________________
From: Jon Boede [mailto:jon (at) shadowsoft.com]
Sent: Monday, October 06, 2008 11:18 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] BB environment variables
I don't have a bbdef.sh anywhere under my hobbit ~/server directory...
:-(
Smith, Jim wrote:
Execute this line at the beginning of your script:
. $BBHOME/etc/bbdef.sh
Make sure you have the period<space> at the beginning.
Jim Smith
SVHS
________________________________
From: Jon Boede [mailto:jon (at) shadowsoft.com]
Sent: Monday, October 06, 2008 10:57 AM
To: hobbit (at) hswn.dk
Subject: [hobbit] BB environment variables
What's a good way to get all the BB environment variables set up when I
want to use them in a script that's not launched from hobbitd?
For example, if I have a script that receives an email and reports a
status because of it? I know that I could hard-code everything, but
that's tacky. :-)
Thanks,
Jon