Skip to content

Commit

Permalink
Changed pgrep condition to filter just pharo vm processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajger committed Jan 4, 2024
1 parent 50ba292 commit 67b21fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PharoLauncher-CLI/PhLImageProcessListCliCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PhLImageProcessListCliCommand >> basicExecute [
{ #category : #'command execution' }
PhLImageProcessListCliCommand >> imageProcesListFrom: shellOutput [
|debugArgs processListUnformatted|
debugArgs := Array with: ('pgrep -a -f Pharo | grep ''.image'' | grep -v ''.bash'' | grep -v {1}' format: {self currentVMPid asString}).
debugArgs := Array with: ('pgrep -ai -f ''pharo.*\.image'' | grep -v ''.bash''| grep -v ''export LD_LIBRARY_PATH'' | grep -v {1}' format: {self currentVMPid asString}).
processListUnformatted := self executeOSShellCommandWithArgs: debugArgs.
self logInfoMessage: '*** Printing unformatted Pharo process data:'.
self logInfoMessage: processListUnformatted.
Expand Down Expand Up @@ -67,7 +67,7 @@ PhLImageProcessListCliCommand >> processListCmdArgs [
separator := self processListDelimiter.
^ String streamContents: [:aStream |
aStream
nextPutAll: 'pgrep -a -f Pharo | grep ''.image'' | grep -v ''.bash'' | grep -v ';
nextPutAll: 'pgrep -ai -f ''pharo.*\.image'' | grep -v ''.bash''| grep -v ''export LD_LIBRARY_PATH'' | grep -v ';
nextPutAll: self currentVMPid asString;
nextPutAll: ' | while read -r line; do'; lf;
nextPutAll: ' pid=$(echo "$line" | awk ''{print $1}'')'; lf;
Expand Down

0 comments on commit 67b21fe

Please sign in to comment.