Skip to main content

Timeline for answer to Get process information (the command, etc) from pid by filbranden

Current License: CC BY-SA 3.0

Post Revisions

7 events
when toggle format what by license comment
Mar 24, 2018 at 7:24 comment added nohillside Ignoring the timing issues, ps -p PID -o args= works in macOS (just try it directly in Terminal with the PID of a running process)
Mar 24, 2018 at 7:09 comment added Kusalananda @FilipeBrandenburger You can't do this either in case the jobs exit out of order. For example, if the last job in the output of jobs -p exits first.
Mar 24, 2018 at 5:28 comment added Alexander Mills I just get a blank line => $process_info is just empty...I tried a lot of things...nothing is working :(
Mar 24, 2018 at 5:28 comment added Alexander Mills take a look at this: gist.github.com/ORESoftware/2f0444cadef5b3546fca0eec749b4b70
Mar 24, 2018 at 5:26 comment added filbranden I don't see why it wouldn't...
Mar 24, 2018 at 5:11 comment added Alexander Mills thanks, seems like the right idea, but not sure if this works on MacOS though, got something x-platform?
Mar 24, 2018 at 5:00 history answered filbranden CC BY-SA 3.0