You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apps built using the Electron framework may be packaged so that they have a commandline that looks something like /usr/bin/electron --app-path=/usr/local/appname/resources/app. Some other apps may also have a binary name that is different from the app name, e.g. /usr/bin/python or another interpreter. I would like to be able to match these sorts of apps directly with lsof.
As a workaround, it's possible to create a commandline by doing something along these lines: lsof -p $(ps aux | grep -i logseq | awk '{print $2}' | tr '\n' ','). Or on a system with pgrep available a shorter version is possible: lsof -p $(pgrep -f -d, -i logseq).
The text was updated successfully, but these errors were encountered:
Apps built using the Electron framework may be packaged so that they have a commandline that looks something like
/usr/bin/electron --app-path=/usr/local/appname/resources/app
. Some other apps may also have a binary name that is different from the app name, e.g./usr/bin/python
or another interpreter. I would like to be able to match these sorts of apps directly with lsof.As a workaround, it's possible to create a commandline by doing something along these lines:
lsof -p $(ps aux | grep -i logseq | awk '{print $2}' | tr '\n' ',')
. Or on a system with pgrep available a shorter version is possible:lsof -p $(pgrep -f -d, -i logseq)
.The text was updated successfully, but these errors were encountered: