Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] condor_status and strings
- Date: Mon, 19 Jun 2006 12:59:40 -0500
- From: Erik Paulson <epaulson@xxxxxxxxxxx>
- Subject: Re: [Condor-users] condor_status and strings
On Tue, Jun 13, 2006 at 11:24:54AM +0100, James Osborne wrote:
> Hi All
>
> I have recently run a condor_status -long and done some grepping and uniqing to
> work out what versions of condor we are running on our execute nodes, the answer
> is...
>
> CondorVersion = "$CondorVersion: 6.6.10 Jun 22 2005 $"
> CondorVersion = "$CondorVersion: 6.6.11 Mar 23 2006 $"
> CondorVersion = "$CondorVersion: 6.6.2 Mar 17 2004 $"
> CondorVersion = "$CondorVersion: 6.6.9 Mar 10 2005 $"
>
> However now I know which versions we are running, I want to do the inverse
> lookup to work out which machines are running version 6.6.11. I tried using
> condor_status as below along with a number of variations trying to escape the
> characters in the string but to no avail.
>
> condor_status -constraint CondorVersion == \"$CondorVersion: 6.6.11 Mar 23 2006
> $\"
>
> Is there a way to match a partial string given i'm running a 6.6.11 submit
> machine ? or does anybody have any other ideas on how i can achieve the same
> effect ?
>
How about
condor_status -format "%s\t" CondorVersion -format "%s\n" Name
-Erik