title: Command not found when trying to start Linux Bash script
body: <p>I have a Bash script that I have been using for a while called <code>launch.sh</code>.  This script launches a set of processes and the script looks like:</p>
  
  <pre><code>for ch in job_lists/*; do
    merlin mkt -log 30 -rollList $ch &gt; "output_$(basename $ch)" &amp;
  done
  </code></pre>
  
  <p>The script pickups a set of 6 jobs from the <code>job_lists</code> and then executes line 2 where another script <code>merlin</code> is called. When I launch the script I get the following returned to the console:</p>
  
  <p><a href="https://i.stack.imgur.com/W6dtl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W6dtl.png" alt="enter image description here"></a></p>
  
  <p>I looks like it picks up the 6 jobs (hence the 6 lines of output), but I think it can't find merlin....</p>
  
  <p>I've just moved my environment to a new laptop and copied over all my scripts. The merlin script is there and I have tried <code>chmod +x launch.sh</code> and <code>chmod +x merlin.sh</code> without success. I have even tried adding <code>#!/bin/bash</code> at top of the script without success.</p>
  
  <p>merlin is located at:</p>
  
  <p><a href="https://i.stack.imgur.com/B5Fzq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B5Fzq.png" alt="enter image description here"></a></p>
  
  <p>I have checked my PATH (see below), I may have missed something but it looks like the PATH to merlin (home/scoleman/user/bin) is present.</p>
  
  <p><a href="https://i.stack.imgur.com/FxBIl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FxBIl.png" alt="enter image description here"></a></p>