title: Executing a bash script from Electron app
body: <p>I am trying to execute bash script within Electron index.html button click. Here's my code which index.html calling renderer.js, and renderer.js opens the bash script. When I run the code, I see a button that I can click, but even when I click it, I do not see &quot;Hello World&quot; from stdout terminal. Does anyone have any advice for solving this problem? Any help much appreciated!</p>
  <p><strong>index.html</strong></p>
  <pre><code> &lt;h0&gt;My-Flection&lt;/h0&gt;
   &lt;button id=&quot;openBtn&quot;&gt;Open&lt;/button&gt;
   &lt;script&gt;
     require('./renderer.js')
   &lt;/script&gt;
  </code></pre>
  <p><strong>renderer.js</strong></p>
  <pre><code>const openBtn = document.getElementById('openBtn')
  const shell = require('electron').shell
  
  openBtn.addEventListener('click', function(event) {
      shell.openItem(&quot;./test.sh&quot;)
  })
  </code></pre>
  <p><strong>test.sh</strong></p>
  <pre><code>echo &quot;Hello World&quot;
  </code></pre>