Updated 'ps' console command to put user name in second column
Bryan Roe committed
Jan 10, 2020 at 15:04 UTC
7fc7f6bb3817e3faa6e66cd101adfbbcf6413f89
1 file changed
+3
-2
agents/meshcore.js
+3
-2
@@ -2173,9 +2173,10 @@ function createMeshCore(agent) {
2173
break;
2174
}
2175
case 'ps': {
2176
- processManager.getProcesses(function (plist) {
2176
+ processManager.getProcesses(function (plist)
2177
+ {
2178
var x = '';
2178
- for (var i in plist) { x += i + ', ' + plist[i].cmd + ((plist[i].user) ? (', ' + plist[i].user) : '') + '\r\n'; }
2179
+ for (var i in plist) { x += i + ((plist[i].user) ? (', ' + plist[i].user) : '') + ', ' + plist[i].cmd + '\r\n'; }
2180
sendConsoleText(x, sessionid);
2181
});
2182
break;