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

Re: [HTCondor-users] Evaluate expression with -json option



condor_status -const partitionableslot -af:lrng start | condor_status -json -ads â

 

the first invocation of condor_status with -af:lrng evaluates and prints attrbutes as key = value,  that is piped to the second invocation

of condor_status what reads ads from stdin and formats writes them back out in json format

 

But be aware that if the start _expression_ depends on any job attributes, then it will  always evaluate to undefined in the absence of a job ad.

 

-tj

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Vikrant Aggarwal
Sent: Wednesday, November 27, 2019 3:32 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Evaluate _expression_ with -json option

 

Hello Experts,

 

Any thoughts on this query?


Thanks & Regards,

Vikrant Aggarwal

 

 

On Mon, Nov 25, 2019 at 5:25 PM Vikrant Aggarwal <ervikrant06@xxxxxxxxx> wrote:

Hello Experts,

 

Below command is giving me the condition set for start not the evaluated _expression_. 

# condor_status  -const partitionableslot -json -attr start

Adding eval(start) also doesn't help. Can we get the evaluated _expression_ with -json or -xml option?


Thanks & Regards,

Vikrant Aggarwal