# Running ROOT macros using LXPLUS

**URL:** <https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525>\
**Category:** Newbie\
**Tags:** root\
**Created:** [September 21, 2020, 11:35am UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525 "2020-09-21T11:35:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [September 21, 2020, 11:35am UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/1 "2020-09-21T11:35:54Z")

</div>

I am trying to use the LXPLUS service to run my own ROOT macros. I can successfully access ROOT itself, however, I do not know how to access the path “.:/usr/share/root/macros” to paste my macros. Could you help me with solving this problem?

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [September 21, 2020, 12:29pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/2 "2020-09-21T12:29:10Z")

</div>

Your ROOT macros do not need to be in any special path. You can run them from anywhere. If they are in your home directory, you can call for instance

```auto
root -l ~/myMacro.C

```

---

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [September 21, 2020, 12:49pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/3 "2020-09-21T12:49:51Z")

</div>

Thank you! How can I run my macro, using LXPLUS ROOT, if the macro is located on my personal computer? I am using Windows 10 as an operating system.

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [September 21, 2020, 1:20pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/4 "2020-09-21T13:20:22Z")

</div>

Hi Steven,

you should transfer your macro from your computer to `lxplus`. You can use [WinSCP](https://winscp.net/eng/index.php) or something similar.

---

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [September 21, 2020, 2:35pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/5 "2020-09-21T14:35:56Z")

</div>

Hi Yus,

Thank you for your help! Now I can run my macros. However, the plots do not appear after running the macro. Is there a possibility to make the graphs visible without saving them (similar to that, when I run my ROOT macros on my PC)?

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [September 21, 2020, 3:31pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/6 "2020-09-21T15:31:36Z")

</div>

You’ll need Xming or something similar to transfer graphics from lxplus to your computer.

---

<div class="post-metadata">

**Author:** ![steven\_sani](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e274bd/32.png) [@steven\_sani](https://root-forum.cern.ch/u/steven_sani)\
**Post date:** [September 21, 2020, 5:44pm UTC](https://root-forum.cern.ch/t/running-root-macros-using-lxplus/41525/7 "2020-09-21T17:44:16Z")

</div>

Thank you! Finally, the X-win32 solved this problem.
