# Problem submitting a HTCondor job of running a root macro

**URL:** <https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604>\
**Category:** Newbie\
**Created:** [October 31, 2019, 10:48am UTC](https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604 "2019-10-31T10:48:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diwakar](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/2acd7d/32.png) [@diwakar](https://root-forum.cern.ch/u/diwakar)\
**Post date:** [October 31, 2019, 10:48am UTC](https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604/1 "2019-10-31T10:48:11Z")

</div>

I am not sure if this is correct place for asking my doubt since it is more related to HTCondor than with root itself.

I have a root macro named “test\_tt.C” in a directory in my ssh account. If i run it locally with “root -l test\_tt.C”, it takes a VERY long time because i am running over a lot of events. But the code is free of errors. So, i tried submitting the job to HTCondor as explained in the tutorial below.

[https://research.cs.wisc.edu/htcondor/manual/quickstart.html](https://research.cs.wisc.edu/htcondor/manual/quickstart.html)

Based on the tutorial i made two files.  
I named one file “job.sh” which contains the commands to be executed. It contains the following code:

```auto
export SCRAM_ARCH=slc6_amd64_gcc630
cd ${CMSSW_BASE}/src
cmsenv
cd -
root -l test_tt.C

```

The second file i named as “job\_submit.sub” which will actually tell the HTCondor about submitting “job.sh”. It contains the following code:

```auto

executable = job.sh
log = job.log
output = outfile.txt
error = errors.txt
should_transfer_files = Yes
when_to_transfer_output = ON_EXIT
queue

```

I submitted the condor job but it got errors. The “errors.txt” file is attached.[errors.txt](https://root-forum.cern.ch/uploads/short-url/dKVlbTqBTRiSGWQVwBhgNV8tvFo.txt) (1.9 KB)

Sorry if the question is off topic or missing any essential details, in which case kindly tell me.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [October 31, 2019, 10:50am UTC](https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604/2 "2019-10-31T10:50:29Z")

</div>

As you said, it is a HTCondor-relayted issue. Please ask to the [HTCondor community](https://research.cs.wisc.edu/htcondor/mail-lists/).
