Node child_process.spawn multiple commands
From Node.js v6 you can specify a shell option in spawn method which will run command using shell and thus it is possible to chain commands using spawn method. For example this: var spawn = require(‘child_process’).spawn; var child = spawn(‘ls && ls && ls’, { shell: true }); child.stderr.on(‘data’, function (data) { console.error(“STDERR:”, data.toString()); }); … Read more