# Running TBrowser by the shell script

**URL:** <https://root-forum.cern.ch/t/running-tbrowser-by-the-shell-script/25621>\
**Category:** ROOT\
**Created:** [July 20, 2017, 6:36am UTC](https://root-forum.cern.ch/t/running-tbrowser-by-the-shell-script/25621 "2017-07-20T06:36:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [July 20, 2017, 7:45am UTC](https://root-forum.cern.ch/t/running-tbrowser-by-the-shell-script/25621/5 "2017-07-20T07:45:45Z")

</div>

> [@Compile and run from command prompt](https://root-forum.cern.ch/t/compile-and-run-from-command-prompt/13799/2):
>
> A brutal fix … echo 'gROOT-\>LoadMacro("macro.C"); macro m; m.Loop(); gSystem-\>Exit(0);' | root -b -l … or … root -b -l \<\<EOF .L macro.C macro m; m.Loop(); .q EOF

> [@Ask: how to transfer the parameter for the root scritpt](https://root-forum.cern.ch/t/ask-how-to-transfer-the-parameter-for-the-root-scritpt/13535/4):
>
> Actually, you have three possibilities: root -l -b -q DrawDiLepPlots.C(3) root -l -b -q DrawDiLepPlots.C\ (\ 3\ ) root -l -b -q "DrawDiLepPlots.C(3)" root -l -b -q “DrawDiLepPlots.C ( 3 )” root -l -b -q 'DrawDiLepPlots.C(3)' root -l -b -q ‘DrawDiLepPlots.C ( 3 )’ Added: See, for example, [ROOT User’s Guide -\> Getting Started -\> Start and Quit a ROOT Session](https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#start-and-quit-a-root-session)

---

_[View the full topic](https://root-forum.cern.ch/t/running-tbrowser-by-the-shell-script/25621)._
