fix(console) io - > exec

This commit is contained in:
coderaiser 2014-01-30 11:11:37 -05:00
parent f95c324fd4
commit 4074dd09f6

View file

@ -109,7 +109,7 @@
*/
function getOnMessage(pConnNum, callback) {
return function(pCommand) {
var lMsg, lWinCommand, lExec_func, firstChar,
var lWinCommand, lExec_func, firstChar,
connName,
lError, lRet, lExecSymbols, isContain,
dir, options = {};
@ -169,11 +169,9 @@
pCommand = connName + pCommand;
pCommand = Util.addNewLine(pCommand);
lMsg = Util.stringifyJSON({
Util.exec(callback, {
stdout: pCommand
});
io.sockets.emit('message', lMsg);
} else if (WIN32 || firstChar === ' ' || isContain)
exec(pCommand, options, lExec_func);
else