HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-devel] Has use of regexps with condor_status changed between 7.4 and 7.7?



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.....
Who would even consider having to add  '-f "" MyAddress' in order for the regexps to work?

Rob.


>On Fri, Mar 16, 2012 at 10:47:24PM -0700, Rob wrote:
>> 
>> 
>> Hi,
>> 
>> On my (Linux) Condor master I have upgraded from 7.4.2 to 7.7.3.
>> 
>> I use a script which does following:
>> 
>> condor_status -f "%s " 'regexps("<([^:]+):\d+>", MyAddress, "\1")'
>> 
>> 
>> to not output simply the "MyAddress"
>> 
>>   <125.195.228.93:1051>
>> 
>> but only the IP number
>> 
>>    125.195.228.93
>> 
>> This command used to work with 7.4.2, but with version 7.7.3 it does not output anything at all anymore.
>> 
>> Has something changed? And if so, what could be a fix to the command to do the same with 7.7.3?
>> 
>> Thank you.
>> Rob.
>