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

Re: [Condor-users] condor_q -format options



Greg Thain wrote:
> Ian Stokes-Rees wrote:
>> I am trying to get some different output from condor_q using the 
>> -format option.  Could someone provide the equivalent condor_q command 
>> using -format that outputs the "no argument" output?
>>
>> Specifically I'm trying to figure out how to get
>>
>> 1. A header line
> I don't know how to do this.

echo -e "heading1\theading2\theading3\n" ; condor_q -format "%s\t" Cmd ...

Best,


matt


>> 2. "R" from the integer JobStatus value
> You can do this with the classad substr function:
> 
> condor_q -format "%s\n" 'substr("?IRXCH",JobStatus,1)'
> 
>> 3. "myscript.sh" from 
>> "/home/vo/nysgrid/.globus/.gass_cache/local/md5/1a/6e708b668649264e5fb67931a303df/md5/b8/77099e5ee7088aa6eab801dc3dd8c6/myscript.sh" 
>>
> This you can use the regexp classad function for:
> 
>  condor_q -format "%s\n" 'regexps("([^/]+$)",Cmd, "\1")'
> 
> _______________________________________________
> 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/