Is it possible to run a bash script from Firefox? (Using Firefox add-on SDK)
<p>I'm trying to create a Firefox add-on that can automatically run bash commands when you click on a specific button. (Client Side always)</p>

<p>For now I managed how to execute simple commands like <code>ls</code> using:</p>

<pre><code>var child_process = require("sdk/system/child_process");

var ls = child_process.spawn('/bin/ls', ['-lh', '/usr']);
</code></pre>

<p>My question is, can I run bash scripts? (.sh files)</p>

<p>for example:</p>

<p><code>#!/bin/bash
 STRING="HELLO WORLD!!!"
 echo $STRING</code> </p>