How do I run a hobbit ext script at 1st day of every month ?
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m bash-3.00$
T.J. Yang
I think you would be better off doing that via a cron job. Why the desire to do it via hobbit?
Stew
On 7/26/07, T.J. Yang <tj_yang at hotmail.com> wrote:
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m bash-3.00$
T.J. Yang
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hi,
workaround: let it run every day and exit if it isn't the first day of the month
Rolf
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m bash-3.00$
T.J. Yang
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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 7/26/07, Rolf Schrittenlocher <Schrittenlocher at rz.uni-frankfurt.de> wrote:
Hi,
workaround: let it run every day and exit if it isn't the first day of the month
And you can use this ` date +%b ' as the extension of a lock file
Rolf
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m bash-3.00$
T.J. Yang
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
On 7/26/07, T.J. Yang <tj_yang at hotmail.com> wrote:
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m
Why not run it out of cron, in the same way you might test a script:
bbcmd $BBHOME/ext/metrics/avail.ksh
That'll set up the environment for you as if Hobbit were running it.
Ralph Mitchell
Thanks for all the replies,
I like the idea of adding the checking 1st day of the month algorithm into the script.
T.J. Yang
From: "Ralph Mitchell" <ralphmitchell at gmail.com> Reply-To: hobbit at hswn.dk To: hobbit at hswn.dk Subject: Re: [hobbit] How do I run a hobbit ext script at 1st day of every month ? Date: Thu, 26 Jul 2007 07:02:07 -0500
On 7/26/07, T.J. Yang <tj_yang at hotmail.com> wrote:
Is there a way to configure a scrip to be run at specific day of the moth/year ? like cronjob or at command.
I have a metric script that need to be run at first day of each month.Following example is not really what I need.
[metrics] ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg CMD $BBHOME/ext/metrics/avail.ksh LOGFILE $BBSERVERLOGS/avail.ksh.log INTERVAL 4320m
Why not run it out of cron, in the same way you might test a script:
bbcmd $BBHOME/ext/metrics/avail.kshThat'll set up the environment for you as if Hobbit were running it.
Ralph Mitchell
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (5)
-
ralphmitchell@gmail.com
-
Schrittenlocher@rz.uni-frankfurt.de
-
stewartl42@gmail.com
-
tj_yang@hotmail.com
-
vadud3@gmail.com