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

Re: [Condor-users] condor_q -format options

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