title: Running external tool - Intellij as sh file on Ubuntu - Command not found
body: <p>I'm trying to execute a really simple script that only launches a fake smtp server using a previous preinstalled package via <strong>apt-get</strong>.</p>
  <p>Here is the code of my script (really simple)</p>
  <pre><code>echo 'Runs a fake stmp server'
  fake-smtp-server
  </code></pre>
  <p>When I run it directly in the terminal, it works without problems:</p>
  <p><a href="https://i.stack.imgur.com/AlcJR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AlcJR.png" alt="enter image description here" /></a></p>
  <p>However when I try to run it via the external tools of intellij, it does not work.</p>
  <p>Here is my external tool configuration, I already tried to run with bin/bash and bin/sh and I get the same error with both:</p>
  <p><a href="https://i.stack.imgur.com/cneaG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cneaG.png" alt="enter image description here" /></a></p>
  <p>Here is the error I get in Intellij terminal when I run it:</p>
  <p><a href="https://i.stack.imgur.com/7aNJg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7aNJg.png" alt="enter image description here" /></a></p>