I've a shell script that, when started, asks for credentials.
I would like to start my script with Node.js using exec()
and send the credentials when asked.
Currently my code is this:
var sys = require('sys')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) { sys.puts(stdout) }
exec("myscript", puts);
Is it possible?
n.b. I can't pass the credentials as arguments of the script, it doesn't support them.