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

Re: [HTCondor-users] [CondorLIGO] Getting job PID from condor


I donât believe Condor transmits the pid of your back to the submit machine by default (and note that there are often many pids associated with a job; but I assume you mean the âparent" job pid initially forked by the condor_starter on the execute machine).

However, one good way to dramatically streamline your current technique might be to use condor_ssh_to_job and print the _CONDOR_JOB_PIDS environment variable.  I.e.:

% condor_ssh_to_job <jobid> 'echo _CONDOR_JOB_PIDSâ


On Jan 25, 2017, at 9:29 PM, Duncan Meacher <duncan.meacher@xxxxxxx> wrote:


I was just wondering if there is any way of easily obtaining the PID of a job running on a compute node. I've looked through the documentation as well as the output of condor_q -long but haven't been able to see anything. At the moment I'm having to do a rather complicated process of getting the condor ID from condor_q, searching for the ip address within the dags nodes.log file, then ssh'ing into that node to obtain it.

Thanks, Duncan


Duncan Meacher, PhD
Postdoctoral Researcher
Institute for Gravitation and the Cosmos
Department of Physics
Pennsylvania State University
104 Davey Lab #040
University Park, PA 16802
Tel: +1 814 865 3243
Condorligo mailing list

Peter F. Couvares
LIGO Laboratory / Caltech