[hobbit] clientlaunch.cfg INTERVALs
I need to ext script to run every hour, exactly on the hour. Am I correct in assuming that if I use "INTERVAL 60m", that this simply launches that script every hour from when the hobbit client was started?
Yes, it will launch the script one time when hobbitlaunch is started and each interval after that.
Francesco Duranti wrote:
I need to ext script to run every hour, exactly on the hour. Am I correct in assuming that if I use "INTERVAL 60m", that this simply launches that script every hour from when the hobbit client was started?
Yes, it will launch the script one time when hobbitlaunch is started and each interval after that.
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.
Hi Charles,
Francesco Duranti wrote:
I need to ext script to run every hour, exactly on the hour. Am I correct in assuming that if I use "INTERVAL 60m", that this simply launches that script every hour from when the hobbit client was started?
Yes, it will launch the script one time when hobbitlaunch is started and each interval after that.
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.
You've got it. Maybe you have to set some variables like . $HOBBITCLIENTHOME/etc/hobbitclient.cfg and/or read .profile.
-- Mit freundlichen Gruessen Rolf Schrittenlocher
HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt Tel: (49) 69 - 798 28908 Fax: (49) 69 - 798 28817 LBS: lbs-f at mlist.uni-frankfurt.de Persoenlich: schritte at rz.uni-frankfurt.de
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...
Ralph Mitchell
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
participants (5)
-
fduranti@q8.it
-
henrik@hswn.dk
-
jonescr@cisco.com
-
ralphmitchell@gmail.com
-
Schrittenlocher@rz.uni-frankfurt.de