-
Notifications
You must be signed in to change notification settings - Fork 20
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
Show process commands in ps::ps()? #138
Comments
It is in the
|
Thanks for confirming, I would not have known. Would it be possible to have more descriptive names? For example, when I call Would it be possible to access these more descriptive commands somehow in |
Those are not names but the command line arguments, and you can use |
I see, |
Why is that a problem and how would the change help? Command line arguments can be very long (thousands of characters), so the output would be very messy if we printed them, even if we truncate them. It is pretty easy to query them if you need them: p <- ps::ps()
cmd <- lapply(p$ps_handle, function(x) {
tryCatch(ps::ps_cmdline(x), error = function(e) NULL)
}) I don't mind an API that can you can use to select columns (not with tidyselect, though), but it is unlikely that I'll have time to add that any time soon. |
Fair enough, those 4 lines are pretty simple. I just generally expect this sort of task to barely require thought at the interface level.
No worries, I totally understand. |
I picked this up to look at as part of tidy-dev-day. Thinking through the problem a little, I didn't come up with a good solution to adding the API. I wanted to jot down some of my thinking here and get feedback. One option might be adding a Another option could be a Thoughts? Maybe @wlandau 's use-case has evolved in the past year as well? |
I think we can add a |
Would it be feasible to show the command of each process in the output of
ps::ps()
? I think this would make processes easier to find.The text was updated successfully, but these errors were encountered: