var project = {repo: 'a', owner: 'b'};
var sys = require('sys');
var exec = require('child_process').exec;
function getRevision(error, stdout, stderr){
exec("yes"); // <--- how can I say 'yes' to request from stdout?
console.log(error, stdout, stderr);
}
exec("git ls-remote "+"bitbucket.org:"+project.owner+"/"+project.repo+".git", getRevision);
in console I have
The authenticity of host 'bitbucket.org (131.103.20.167)' can't be established.
RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?
How I can say "yes" on this request from console?