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

[HTCondor-users] customizing condor_who output



Hello all,

condor_who without arguments yields:
Â[root@mywn ~]# condor_who

OWNER ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂCLIENT ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂSLOT JOB ÂÂÂÂÂÂÂÂÂÂÂRUNTIME ÂÂÂPID ÂÂÂÂÂÂÂÂÂPROGRAM
[...] ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ


It is possible to query for classad attributes using for example:

[root@mywn ~]# condor_who -af 'split(ClientMachine,".")[0]' 'split(Name,"@.")[1]' 'split(RemoteOwner,"@")[0]' JobId Cpus 'ImageSize/1e6'

shinyschedd-01 mywn niceuser001 8223408.0 1
3.519132
greatschedd-02 mywn fineuser037Â 7337671.0 8 1.939228

Now I would d like to also get the PID value, which comes for free with the plain condor_who command,
but it seems that no classad attribute actually yields that.

Is there any way to retrieve the PID value together with the other attributes withing a single condor_who execution?

Stefano