# Submit mesh\_converter to CERN batch service

**URL:** <https://allpix-squared-forum.web.cern.ch/t/submit-mesh-converter-to-cern-batch-service/113>\
**Category:** Uncategorized\
**Created:** [June 16, 2020, 1:55pm UTC](https://allpix-squared-forum.web.cern.ch/t/submit-mesh-converter-to-cern-batch-service/113 "2020-06-16T13:55:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldecilla](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@ldecilla](https://allpix-squared-forum.web.cern.ch/u/ldecilla)\
**Post date:** [June 16, 2020, 1:55pm UTC](https://allpix-squared-forum.web.cern.ch/t/submit-mesh-converter-to-cern-batch-service/113/1 "2020-06-16T13:55:39Z")

</div>

Dear developers and users,

could someone help me in understanding how to submit a mesh\_converter job to the batch service? In particular, I made some attempts, but I was not successful in understanding what to include in the .sub file tu submit to the HTCondor batch service from lxplus. What I’d like to submit is as simple a command as ./mesh\_converter -f file\_prefix

Thanks for your support,  
Kind regards,

Lorenzo de Cilladi

---

<div class="post-metadata">

**Author:** ![simonspa](https://allpix-squared-forum.web.cern.ch/user_avatar/allpix-squared-forum.web.cern.ch/simonspa/32/597_2.png) [@simonspa](https://allpix-squared-forum.web.cern.ch/u/simonspa)\
**Post date:** [June 17, 2020, 7:32am UTC](https://allpix-squared-forum.web.cern.ch/t/submit-mesh-converter-to-cern-batch-service/113/2 "2020-06-17T07:32:41Z")

</div>

Hi,

on LXPLUS’s HTCondor, you can e.g. do this:

```auto
condor_submit executable=mesh_converter arguments="-f file_prefix" htcondor.sub

```

with `htcondor.sub` as:

```auto
# redirect logging and error output:
output = apsq.$(ClusterId).$(ProcId).out
error = apsq.$(ClusterId).$(ProcId).err
log = apsq.$(ClusterId).log

# set up file transfer back to this folder
should_transfer_files = YES
when_to_transfer_output = ON_EXIT_OR_EVICT

# ship environment variables
getenv = True

# queue the job
+JobFlavour = "nextweek"
queue

```

Adjust parameters as you need/like. Documentation for HTCondor is here: [https://research.cs.wisc.edu/htcondor/manual/v7.6/7\_3Running\_Condor.html#SECTION00839000000000000000](https://research.cs.wisc.edu/htcondor/manual/v7.6/7_3Running_Condor.html#SECTION00839000000000000000)

Cheers,  
Simon

---

<div class="post-metadata">

**Author:** ![ldecilla](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@ldecilla](https://allpix-squared-forum.web.cern.ch/u/ldecilla)\
**Post date:** [June 19, 2020, 2:23pm UTC](https://allpix-squared-forum.web.cern.ch/t/submit-mesh-converter-to-cern-batch-service/113/3 "2020-06-19T14:23:07Z")

</div>

Dear @simonspa,

thanks a lot for your help.

Cheers,  
Lorenzo
