title: How to specify folder location using `cd` command inside exec function?
body: <p>Instead of specifying root of file for execution in a remote server, how we can use <code>cd</code> command in <code>exec()</code> in nodejs.What i am done is like this.</p>
  
  <pre><code>         var command_part1 = `ssh -p 22 root@ip`;
           var command_part2 = `python3 test.py ${input}`;
           var folderPath    = `/root/folder/`;
           var child         = exec(`${command_part1} &amp;&amp; cd ${folderPath} &amp;&amp; ${command_part2}` , function (error, stdout, stderr) {
            if (error !== null) {
             callback(error)
            } else {
             callback();
            }
          });
  </code></pre>
  
  <p>But this code is not working, when i am executing this command locally,ssh login only is happening, further commands are not working.How can i make this working ? I dont want to specify the folder path like  <code>python3 /root/folder/test.py ${input};</code></p>
  
  <p>Thank You Inadvance</p>