# Script/Runner and passing parameters

**URL:** <https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736>\
**Category:** Rails\
**Created:** [November 9, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736 "2007-11-09T19:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aantix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@aantix](https://www.ruby-forum.com/u/aantix)\
**Post date:** [November 9, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736/1 "2007-11-09T19:35:51Z")

</div>

I am calling a model from cron using script/runner. My call looks like  
this :

/usr/local/bin/ruby script/runner -e production  
“ProfileBox.updateProfileBoxes”

I need to be able to pass parameters to this model. Something like  
this :

/usr/local/bin/ruby script/runner -e production  
“ProfileBox.updateProfileBoxes” param1 param2

How can I pass parameters to this model?

---

<div class="post-metadata">

**Author:** ![aantix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f0a364/32.png) [@aantix](https://www.ruby-forum.com/u/aantix)\
**Post date:** [November 9, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/script-runner-and-passing-parameters/119736/2 "2007-11-09T20:13:55Z")

</div>

> /usr/local/bin/ruby script/runner -e production  
> “ProfileBox.updateProfileBoxes”
> 
> I need to be able to pass parameters to this model. Something like  
> this :

./script/runner -e production “ProfileBox.updateProfileBoxes(param1,  
param2)”
