# PBSPro environment issues with OOD

**URL:** <https://discourse.openondemand.org/t/pbspro-environment-issues-with-ood/579>\
**Category:** Get Help\
**Created:** [October 30, 2019, 8:47pm UTC](https://discourse.openondemand.org/t/pbspro-environment-issues-with-ood/579 "2019-10-30T20:47:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rodgers.355](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rodgers.355/32/193_2.png) [@rodgers.355](https://discourse.openondemand.org/u/rodgers.355)\
**Post date:** [November 26, 2019, 4:15pm UTC](https://discourse.openondemand.org/t/pbspro-environment-issues-with-ood/579/6 "2019-11-26T16:15:31Z")

</div>

Folks,

Apologies for not responding with this idea earlier. This question is essentially a duplicate of [Question About Passing Environment Variables for PBS Job - #2 by rodgers.355](https://discourse.openondemand.org/t/question-about-passing-environment-variables-for-pbs-job/270/2).

The idea is to write a wrapper for `qsub` to SSH to a login node and launch from there. To support that sort of workflow many of OnDemand’s adapters including the one for PBSPro support overriding the default scheduler commands (`qsub`, `qstat`, …) using the `bin_overrides` section of the [PBSPro cluster config](https://osc.github.io/ood-documentation/develop/installation/resource-manager/pbspro.html).

> [@Question About Passing Environment Variables for PBS Job](https://discourse.openondemand.org/t/question-about-passing-environment-variables-for-pbs-job/270/4):
>
> Another option is to use the wrapper script to actually execute the qsub command via `ssh` to a login node. That would ensure you have the same environment as you would when submitting from the login node.
> 
> [This issue](https://github.com/OSC/Open-OnDemand/issues/54) describes a request on how to use `ssh` and the individual who posted the issue actually provided a repo with a [set of wrappers that appear to work for Slurm](https://github.com/puneet336/OOD-1.5_wrappers/tree/master/openondemand/1.5/wrappers/slurm/bin).

---

_[View the full topic](https://discourse.openondemand.org/t/pbspro-environment-issues-with-ood/579)._
