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

Updated mesh agent

This commit is contained in:
Ylian Saint-Hilaire 2018-04-20 16:05:06 -07:00
parent e8294491cb
commit 61e383795c
22 changed files with 24 additions and 13 deletions

View file

@ -372,7 +372,7 @@ function createMeshCore(agent) {
break;
}
case 'pskill': {
sendConsoleText(JSON.stringify(data));
//sendConsoleText(JSON.stringify(data));
try { process.kill(data.value); } catch (e) { sendConsoleText(JSON.stringify(e)); }
break;
}
@ -856,8 +856,14 @@ function createMeshCore(agent) {
break;
}
case 'toast': {
require('toaster').Toast('MeshCentral', args['_'][0]);
response = 'ok';
if (process.platform == 'win32') {
if (args['_'].length < 1) { response = 'Proper usage: toast "message"'; } else {
require('toaster').Toast('MeshCentral', args['_'][0]);
response = 'ok';
}
} else {
response = 'Only supported on Windows.';
}
break;
}
case 'setdebug': {