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

Wanted: Equivalent to macOS ps's -T (show processes attached to the device associated with standard input) #182

Open
lilyball opened this issue Sep 3, 2021 · 0 comments

Comments

@lilyball
Copy link

lilyball commented Sep 3, 2021

macOS ps has a -T flag which is "Display information about processes attached to the device associated with the standard input" (it also has a -t which is "Display information about processes attached to the specified terminal devices.", so -T is basically -t /dev/stdin).

This is really useful, as a way to easily see the parent process list up to the root (login). I use it rather often. And I don't see any way to replicate this in procs. It won't even search on the TTY field even if I pass the exact name shown by procs for my current shell.

I know procs isn't offering flags for filtering, instead doing a "search on keyword", but it really should support this use-case. Either passing a terminal device as a keyword should show all processes associated with that device, or it should support an explicit "search on this field" with e.g. procs tty=/dev/stdin. Probably both.

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

1 participant