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:
parent
e8294491cb
commit
61e383795c
22 changed files with 24 additions and 13 deletions
|
@ -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': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue