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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Thanks for such a nice Library.Before this plugin i was trying for the following approaches.
1)Calling the C code which does the Command based logic in getting the top process.
2)Execute a os command and fetch the values and iterate them
Here is the sample output for 5 top process running on my pc
vagrant@vagrant-ubuntu-trusty-64:~/$ ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 5|awk '{print $1}'
1812
1847
925
2232
2286
Is there a possibility that i can do this through the library.I see there are two important functions available where one gets all the porcess pid's running on the machine and the other gets the information of a specific PID.
I was thinking if there is a way or a logic if i can get the top five process running from the library as a function.
Thanks again for the library
Vamsi KGR
The text was updated successfully, but these errors were encountered:
daftaupe
pushed a commit
to daftaupe/go-ps
that referenced
this issue
Jan 5, 2018
This is so we can get parent pid and processes that have been deleted while
running (on darwin).
Also,
- Test ps from exec process
- Support path on linux
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @mitchellh ,
Thanks for such a nice Library.Before this plugin i was trying for the following approaches.
1)Calling the C code which does the Command based logic in getting the top process.
2)Execute a os command and fetch the values and iterate them
Here is the sample output for 5 top process running on my pc
vagrant@vagrant-ubuntu-trusty-64:~/$ ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 5|awk '{print $1}'
1812
1847
925
2232
2286
Is there a possibility that i can do this through the library.I see there are two important functions available where one gets all the porcess pid's running on the machine and the other gets the information of a specific PID.
I was thinking if there is a way or a logic if i can get the top five process running from the library as a function.
Thanks again for the library
Vamsi KGR
The text was updated successfully, but these errors were encountered: