Pages

03 June, 2024

How to monitor process status during process lifetime

I need to track the process status ps axf during executable lifetime.
Let's say I have executable main.exec and want to store into a file all subprocess which are called during main.exec execution.

$ main.exec &
$ echo $! # and redirect every ps change for PID $! in a file.

No comments:

Post a Comment

Thanks