How to monitor the pid of each command in shell script?
30164
How to get pid of just started process
56658
Log all commands run by admins on production servers
54838
determine shell in script during runtime
73847
Print pids and names of processes as they are created
14209
Pipe output and capture exit status in Bash
147965
Monitor a program's I/O
32654
How to know where shell variables and functions are set?
36299
How to echo shell commands as they are executed
118497
How can I get a list of process IDs on the system under Linux?
18346
List all commands that a shell knows
77401
How do I log every command executed by a user?
119181
How to debug bash script?
145543
Bash way to check if a process is already running in the background (and skip re-execution based on that)?
39178
How to get pid given the process name
131252
How to capture all the commands typed in Unix/Linux by any user?
70866
Check command success in bash
30228
How do I check which shell I am using?