# Run only on Linux or Window server

**URL:** <https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136>\
**Category:** Extensions\
**Tags:** windows, linux, extensions\
**Created:** [November 4, 2022, 5:21am UTC](https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136 "2022-11-04T05:21:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 4, 2022, 5:21am UTC](https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136/1 "2022-11-04T05:21:24Z")

</div>

Hi All,

I’m trying to build a host-only V1 Python plugin that will be distributed as a package to all servers in an environment (Windows & Linux). Unfortunately, due to module/library setups, etc., configuring themselves for just the OS that things are building on I need to split the package into two - a Linux & a Windows version.

Previously, in order to make host-only packages run I’ve configured&nbsp;_“processTypes”: [0],_&nbsp;but I can’t really do that in this case - unfortunately, both plugin packages will be resident on all hosts so I need Dynatrace to only run the relevant package on the relevant OS type.

I’ve tried restricting the plugin execution to have&nbsp;_technologies: [‘LINUX\_SYSTEM’]_&nbsp;or&nbsp;_technologies:[‘WINDOWS\_SYSTEM’]_&nbsp;however when I do that the plugin will not run at all on either system.

Any guidance/examples/thoughts that anyone could offer would be hugely appreciated.

Thoughts!??&nbsp;Thanks!

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 4, 2022, 5:33am UTC](https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136/2 "2022-11-04T05:33:27Z")

</div>

Sorry - I should add - in case people are wondering. &nbsp;The plugin uses the _psutil_&nbsp;module in Python - unfortunately when I pip install Psutil it drops in only the libraries relevant for the OS that I’m running on (Linux or Windows) - when I distribute a plugin built this way it will fail on the other operating system (module not found).

Have tried manually picking up the libraries etc for each OS, dropping them into the python site\_packages, and then building but to no avail - I suspect there’s some more configuration/linking going on during install of Psutil. &nbsp;Hope that helps!

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [May 19, 2023, 10:39am UTC](https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136/3 "2023-05-19T10:39:17Z")

</div>

Instead of splitting it into two extensions, build it on both Windows and on Linux, and then merge the zip files. That’s how we do our cross OS supported extensions on the hub.

---

<div class="post-metadata">

**Author:** ![ewoelkerling](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ewoelkerling](https://community.dynatrace.com/u/ewoelkerling)\
**Post date:** [November 9, 2023, 4:34am UTC](https://community.dynatrace.com/t/run-only-on-linux-or-window-server/37136/4 "2023-11-09T04:34:12Z")

</div>

Thanks Mike - sorry, only just saw this one - appreciated!
