[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Using the value returned by an external program in a MACRO
- Date: Mon, 27 Jun 2005 12:42:59 -0500
- From: Derek Wright <wright@xxxxxxxxxxx>
- Subject: Re: [Condor-users] Using the value returned by an external program in a MACRO
On Mon, 27 Jun 2005 12:05:47 +0100 Matt Hope wrote:
> On 6/27/05, Sumanth J.V <sumanth@xxxxxxxxxxx> wrote:
> > Isnt there anyway to do something like backquoting in BASH for eg.
> > temperature = `/usr/local/bin/temp.sh` ?
> if you are on unix then hawkeye id the 'standard' condor way to get
> monitored information into condor classads. you will find going with
> the flow on this makes your life easier after the initial hassle of
> setting it up...
if you just wanted the put:
temp = `/usr/local/bin/temp.sh`
in your config file, then even if condor supported such a syntax
(which it doesn't), you'd only "refresh" the value of the tempurature
each time condor re-reads its config file. this clearly isn't what
you want. that's why hawkeye is better for this. you can configure
exactly how often you want condor to update this value, completely
independent of re-reading the config file. since hawkeye is more
powerful and flexible than backticks, it's a little bit of a hassle to
setup (but it's still pretty easy)...
also, in case it's not immediately clear from the hawkeye docs, you
can use the hawkeye "cron" funtionality directly in your existing
condor startd installation, you don't need a seperate "hawkeye_startd"
running or anything like that.