Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The process executable path maybe wrong? #703

Closed
sechacking opened this issue Oct 21, 2015 · 1 comment
Closed

The process executable path maybe wrong? #703

sechacking opened this issue Oct 21, 2015 · 1 comment

Comments

@sechacking
Copy link

hi,all
in my host,has one process like this

root 1422 1 0 2014 ? 02:39:45 /usr/bin/ruby /usr/sbin/puppetd

that maybe my progame is puppetd,but i use psutil.Process to get process exe path

they say exe is /usr/bin/ruby...

so someone has konw how fix it?

@giampaolo
Copy link
Owner

psutil is correct because the executable is the ruby interpreter, not puppetd. /usr/sbin/puppetd is part of the cmdline the process it was called with, which you can extract (and possibly parse) with Process.cmdline().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants