/BashProcessStacktrace

Lists all parent processes of a running bash script

Primary LanguageShellGNU General Public License v3.0GPL-3.0

What this does

It goes back all of the parent processes and prints them to stdout, so you know what program your script was started by.

Example output

755957: /bin/zsh
685059: konsole [kdeinit5]
5625: kdeinit5: Running...
1: /sbin/init