[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?



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")'

Regards,
Lukas

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.

> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/