Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Has use of regexps with condor_status changed between 7.4 and 7.7?
- Date: Wed, 21 Mar 2012 17:00:20 -0700 (PDT)
- From: Rob <spamrefuse@xxxxxxxxx>
- Subject: Re: [Condor-users] Has use of regexps with condor_status changed between 7.4 and 7.7?
On Mon, 19 Mar 2012 09:08:23, Matthew Farrellee wrote:
On 03/19/2012 02:20 AM, Todd Tannenbaum wrote:
On 3/18/2012 8:41 PM, Rob wrote:
>On Sat, 17 Mar 2012 09:46:49, Lukas Slebodnik wrote:
>>We have installed Condor 7.6.5 and your command
>>>did not also output anything.
>
>But I tried some modifications of your command.
>
>Next command will output both MyAddress and replaced IP address
>condor_status -f "%s " MyAddress -f "%s \n" 'regexps("<([^:]+):\d+>",
MyAddress, "\1")'
>
>So workaroud for you could be
>condor_status -f "" MyAddress -f "%s \n" 'regexps("<([^:]+):\d+>",
MyAddress, "\1")'
> Thank you, this indeed works......but I can't believe this is then the
new "official" way of achieving this.
Your suggestion looks more like a work-around of a newly introduced bug
in the condor_status command.....
>Indeed, I think it is a bug, and I think I may have an idea what is
happening... I just created a developer ticket about this, see https://condor-wiki.cs.wisc.edu/index.cgi/tktview?tn=2896 If I guessed right re what is going on (fingers crossed), it should be
an easy fix. Thanks for letting us know,
Todd
> Until the fix, a cleaner way to workaround is w/ -attributes.
>
> Matt
I have tried "-attributes" but it does not work they way I expect.
It seems to work only when also used with "-l" or "-long", otherwise condor_status will just output its standard output. When used with "-long", I get some unexpected attributes as unwanted bonus, for example:
$ condor_status -l -attributes MyAddress
MyType = "Machine"
MyAddress = "<105.125.228.61:1048>"
TargetType = "Job"
CurrentTime = time()
MyType = "Machine"
MyAddress = "<105.125.228.68:1047>"
TargetType = "Job"
CurrentTime = time()
Why do I also get "MyType", "TargetType", and "CurrentTIme", if they are not listed as "-attributes"?
More importantly: I don't understand how to use the attribute flag in order to achieve my original goal:
condor_status -f "%s " MyAddress -f "%s \n" 'regexps("<([^:]+):\d+>", MyAddress, "\1")'
which only displays a list of IP numbers.
Thank you.
Rob.