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

Re: [Condor-users] condor_status with -format options



 

> -----Original Message-----
> From: condor-users-bounces@xxxxxxxxxxx 
> [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Daniel Forrest
> Sent: 14 December 2007 23:42
> To: Anthony Tiradani
> Cc: Condor-Users Mail List
> Subject: Re: [Condor-users] condor_status with -format options
> ...
> One of the features of condor_status is that if a field name 
> is not valid then nothing is printed for that field, with the 
> additional feature that if there is no "%" conversion in the 
> format string then the format string is printed regardless of 
> the field name.  So you can ensure there is always a trailing 
> carriage return like this:
> 
> /opt/condor/bin/condor_status -format "%s " Name -format "%s" 
> RemoteUser -format "\n" AnyString
> 
> 
> This is useful since RemoteUser may or may not be defined 
> depending on the machine state.

It used to be the case that AnyString had to match a proper ClassAd
value
Otherwise nothing was printed. If this has changed then it is likely to
be in 6.9
only.

Cheers

JK