# How to write a script for a program run in two hosts?

**URL:** <https://community.openpbs.org/t/how-to-write-a-script-for-a-program-run-in-two-hosts/1216>\
**Category:** Users/Site Administrators\
**Created:** [September 26, 2018, 8:12am UTC](https://community.openpbs.org/t/how-to-write-a-script-for-a-program-run-in-two-hosts/1216 "2018-09-26T08:12:46Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![PanXG](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@PanXG](https://community.openpbs.org/u/PanXG)\
**Post date:** [September 30, 2018, 9:13am UTC](https://community.openpbs.org/t/how-to-write-a-script-for-a-program-run-in-two-hosts/1216/21 "2018-09-30T09:13:13Z")

</div>

Bravo! I’ve solved this issue.  
It’s not the wrong configuration.  
**I re-install with source code(18.1.2) and it works.**

**To everyone view this topic, it is not recommended to install pbs pro(14.1.2) via yum from the repo of ohpc.**

At last, adarsh, thank you for your generous help.

---

<div class="post-metadata">

**Author:** ![PanXG](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@PanXG](https://community.openpbs.org/u/PanXG)\
**Post date:** [January 17, 2019, 3:43am UTC](https://community.openpbs.org/t/how-to-write-a-script-for-a-program-run-in-two-hosts/1216/22 "2019-01-17T03:43:32Z")

</div>

Update my reply to eliminate misleading.

**The true problem is I installed the pbs\_mom in shared disk for all execution nodes.**

[Previous page](https://community.openpbs.org/t/how-to-write-a-script-for-a-program-run-in-two-hosts/1216.md?page=1)
