title: Quick bash script to run a script in a specified folder?
body: <p>I am attempting to write a bash script that changes directory and then runs an existing script in the new working directory.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>#!/bin/bash
  cd /path/to/a/folder
  ./scriptname
  </code></pre>
  
  <p>scriptname is an executable file that exists in /path/to/a/folder - and (needless to say), I do have permission to run that script.</p>
  
  <p>However, when I run this mind numbingly simple script (above), I get the response:</p>
  
  <p><strong>scriptname: No such file or directory</strong></p>
  
  <p>What am I missing?! the commands work as expected when entered at the CLI, so I am at a loss to explain the error message. How do I fix this?</p>