1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed CIRA session recording issue.

This commit is contained in:
Ylian Saint-Hilaire 2019-09-14 16:57:54 -07:00
parent 9a4376bd59
commit cdd1edfd61
4 changed files with 30 additions and 2 deletions

View file

@ -1671,6 +1671,20 @@ function createMeshCore(agent)
break;
}
/*
case 'npm': {
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['-v']);
child.stdout.str = '';
child.stdout.on('data', function (chunk) {
sendConsoleText(chunk, sessionid);
//this.str += chunk.toString();
});
child.waitExit();
response = 'Response: ' + child.stdout.str;
//exec('npm -v', function (error, stdout, stderr) { console.log('stdout: ', stdout); });
break;
}
*/
/*
case 'border':
{
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {

View file

@ -1671,6 +1671,20 @@ function createMeshCore(agent)
break;
}
/*
case 'npm': {
var child = require('child_process').execFile('C:\\Program Files\\nodejs\\node.exe', ['-v']);
child.stdout.str = '';
child.stdout.on('data', function (chunk) {
sendConsoleText(chunk, sessionid);
//this.str += chunk.toString();
});
child.waitExit();
response = 'Response: ' + child.stdout.str;
//exec('npm -v', function (error, stdout, stderr) { console.log('stdout: ', stdout); });
break;
}
*/
/*
case 'border':
{
if ((args['_'].length == 1) && (args['_'][0] == 'on')) {