title: Node.js Shell Script And Arguments
body: <p>I need to execute a bash script in node.js. Basically, the script will create user account on the system. I came across <a href="http://blog.nodejitsu.com/nodejs-cloud-server-in-three-minutes" rel="noreferrer">this example</a> which gives me an idea how to go about it. However, the script itself needs arguments like the username, the password and the real name of the user. I still can't figure out how to pass those arguments to the script doing something like this:  </p>
  
  <pre><code>var commands = data.toString().split('\n').join(' &amp;&amp; ');
  </code></pre>
  
  <p>Does anyone have an idea how I can pass those arguments and execute the bash script within node.js over an ssh connection.
  thanks</p>