title: Calling Bash Commands With Multiple args From Ruby?
body: <p>I write this code in my rails project.It's to execute a shell script ,But my shell script can catch @directdown only.</p>
  
  <p>rails script</p>
  
  <pre><code>@cmd = "/downafile.sh #{@directdown} #{@file.id} #{@filename}"
  `#{@cmd}`
  </code></pre>
  
  <p>shell script</p>
  
  <pre><code>echo $1 &gt;&gt; /tmp/ceshi.tmp
  echo $2 &gt;&gt; /tmp/ceshi.tmp
  echo $3 &gt;&gt; /tmp/ceshi.tmp
  </code></pre>
  
  <p>Thanks.</p>