more debug

This commit is contained in:
typpo 2012-04-06 22:37:39 -04:00
parent 4f135d4b2c
commit 29792f6bfd

3
app.js
View File

@ -84,10 +84,11 @@ function sendText(phone, message, cb) {
var child = spawn('sendmail', ['-f', 'txt@textbelt.com', '9147727429@vtext.com']); var child = spawn('sendmail', ['-f', 'txt@textbelt.com', '9147727429@vtext.com']);
child.stdout.on('data', console.log); child.stdout.on('data', console.log);
child.stderr.on('data', console.log); child.stderr.on('data', console.log);
child.on('error', console.log);
child.on('exit', function(code, signal) { child.on('exit', function(code, signal) {
cb(code !== 0); cb(code !== 0);
}); });
child.stdin.write(message); child.stdin.write('testiiii', 'binary');
child.stdin.end(); child.stdin.end();