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

Re: [HTCondor-users] Overriding Cmd for condor_q output?

Brian Candler wrote:

> Otherwise, I can put this in a script:
> condor_q -format "%d." ClusterId -format "%d" ProcId -format " %s" Owner -format " %s" Cmd -format " %s\n" Arguments
> But in this case it displays _all_ the arguments (which could be a very long
> list for the application in hand)


    -format " %.20s\n" Arguments

Replace '.20' with whatever maximum field width you want.

You might also use:

    -format " %.20s\n" 'ifThenElse(isUndefined(Args),Arguments,Args)'

If you have a mix of jobs with both the old and new argument formats.

Daniel K. Forrest		Space Science and
dan.forrest@xxxxxxxxxxxxx	Engineering Center
(608) 890 - 0558		University of Wisconsin, Madison