Removing dashes for ps command (#2185)

This commit is contained in:
Andrew Wang
2018-06-29 13:59:14 -07:00
committed by GitHub
parent bf7287e70b
commit 842e685a6a
+2 -2
View File
@@ -111,8 +111,8 @@ export class PsProcessParser {
// Note that comm on Linux systems is truncated to 16 characters: // Note that comm on Linux systems is truncated to 16 characters:
// https://bugzilla.redhat.com/show_bug.cgi?id=429565 // https://bugzilla.redhat.com/show_bug.cgi?id=429565
// Since 'args' contains the full path to the executable, even if truncated, searching will work as desired. // Since 'args' contains the full path to the executable, even if truncated, searching will work as desired.
public static get psLinuxCommand(): string { return `ps -axww -o pid=,comm=${PsProcessParser.commColumnTitle},args=`; } public static get psLinuxCommand(): string { return `ps axww -o pid=,comm=${PsProcessParser.commColumnTitle},args=`; }
public static get psDarwinCommand(): string { return `ps -axww -o pid=,comm=${PsProcessParser.commColumnTitle},args= -c`; } public static get psDarwinCommand(): string { return `ps axww -o pid=,comm=${PsProcessParser.commColumnTitle},args= -c`; }
// Only public for tests. // Only public for tests.
public static ParseProcessFromPs(processes: string): Process[] { public static ParseProcessFromPs(processes: string): Process[] {