# Peoblems with passing bash script arguments

**URL:** <https://root-forum.cern.ch/t/peoblems-with-passing-bash-script-arguments/14666>\
**Category:** General Chat\
**Created:** [July 30, 2012, 11:19am UTC](https://root-forum.cern.ch/t/peoblems-with-passing-bash-script-arguments/14666 "2012-07-30T11:19:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurbatov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/ee7513/32.png) [@kurbatov](https://root-forum.cern.ch/u/kurbatov)\
**Post date:** [July 30, 2012, 11:19am UTC](https://root-forum.cern.ch/t/peoblems-with-passing-bash-script-arguments/14666/1 "2012-07-30T11:19:17Z")

</div>

Dear colleagues!  
Let me explain my problem.  
I have root script, Let it have name my.C with  
parameter,i.e. from command string I execute it  
like root ‘my.C(“run\_1.7”)’.  
Then let us assume that I should execute previous  
command inside bash script where the value run\_1.7 is  
a parameter of this bash script.  
In another words I take parameter for root script  
as an argument of bash script.  
How can I do it?  
Thanks in advance,V.Kurbatov

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [July 30, 2012, 12:08pm UTC](https://root-forum.cern.ch/t/peoblems-with-passing-bash-script-arguments/14666/2 "2012-07-30T12:08:03Z")

</div>

[url][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/1)  
[url][Compile and run from command prompt](https://root-forum.cern.ch/t/compile-and-run-from-command-prompt/13799/1)  
Search also for “eval” in “man bash”.
