title: How to run a command in a bash program?
body: <p>I can run this command</p>
  
  <pre><code>./dropbox_uploader.sh upload /home/pi/abc.jpg abc.jpg
  </code></pre>
  
  <p>successfully in commandline and I'd like run it inside a bash program but I cant.</p>
  
  <p>My script is:</p>
  
  <pre><code>picfiles=`ls /home/pi/Dropbox-Uploader/*jpg`
  for i in $picfiles;do
  path="/home/pi/Dropbox-Uploader/dropbox_uploader.sh"
  eval $path 
  upload "$i"
  done
  </code></pre>