From 29792f6bfdfe4537396003a2bd7725034daddd3e Mon Sep 17 00:00:00 2001 From: typpo Date: Fri, 6 Apr 2012 22:37:39 -0400 Subject: [PATCH] more debug --- app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 7d6a069..c38145f 100644 --- a/app.js +++ b/app.js @@ -84,10 +84,11 @@ function sendText(phone, message, cb) { var child = spawn('sendmail', ['-f', 'txt@textbelt.com', '9147727429@vtext.com']); child.stdout.on('data', console.log); child.stderr.on('data', console.log); + child.on('error', console.log); child.on('exit', function(code, signal) { cb(code !== 0); }); - child.stdin.write(message); + child.stdin.write('testiiii', 'binary'); child.stdin.end();