title: How to access node JS(javascript) variables in shell script file
body: <p>I'm running shell script file from nodeJS file i need to send some parameters to shell script and use it in shell script </p>
  
  <p>My js file </p>
  
  <pre><code>var dbname = development.db.uri;
      console.log(dbname);
      var myscript = exec('sh ./scripts/mongo-backup.sh'+ dbname );
      myscript.stdout.on('data',function(data){
          console.log("!@#$%^&amp;*&amp;@#$%^&amp;*$##$%^&amp;*")
          console.log(data); // process output will be displayed here
      });
      myscript.stderr.on('data',function(data){
          console.log(data); // process error output will be displayed here
      });
  </code></pre>
  
  <p>and here is my shell script </p>
  
  <pre><code>#!/bin/bash
  echo "Creating Database Backup"
  #need to access dbname from JS FILE
  MONGO_DATABASE= dbname 
  APP_NAME="app-name"
  USERNAME=$(sudo echo $USER)
  </code></pre>