Added ability to get process parent, name and list of processes. #42912
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-io
type-enhancement
A request for a change that isn't a bug
I'm the author of dshell which provides a library for building cli apps with dart.
https://github.com/bsutton/dshell/
One of the core drivers is to replace bash with dart.
When building these types of apps a common operation is to get details of a running process.
Specifically
A list of running processes.
The name of an existing process
The parent pid of of a process [the more specialised use case is the parent of the current process].
I'm currently doing this by calling out to 'tasklist' on windows and 'ps' under linux.
The problem is these methods are not reliable (particularly under linux) as not all distros have the required tooling.
For example we do a lot of work in docker containers and the availability of 'ps' is not the norm.
My suggestion would be something like:
Having these methods in the core sdk would make this work far easier.
The text was updated successfully, but these errors were encountered: