Just use :
pgrep -P $your_process1_pid
More Related Contents:
- What’s the best way to send a signal to all members of a process group?
- Get exit code of a background process
- Linux/Unix command to determine if process is running?
- How to set process group of a shell script
- How to prevent a background process from being stopped after closing SSH client in Linux
- What’s the magic of “-” (a dash) in command-line parameters?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- How to stop java process gracefully?
- Is there a “goto” statement in bash?
- Forcing bash to expand variables in a string loaded from a file
- How can I generate new variable names on the fly in a shell script?
- How can I delete a newline if it is the last character in a file?
- Bash while read loop extremely slow compared to cat, why?
- How to remove ^[, and all of the escape sequences in a file using linux shell scripting
- Redirect STDERR / STDOUT of a process AFTER it’s been started, using command line?
- Find multiple files and rename them in Linux
- How can I loop over the output of a shell command?
- Why does /bin/sh behave differently to /bin/bash even if one points to the other?
- [ :Unexpected operator in shell programming [duplicate]
- Using the passwd command from within a shell script
- Command to get time in milliseconds
- Run a command in a shell and keep running the command when you close the session
- Get a list of function names in a shell script [duplicate]
- How to kill zombie process
- Get ceiling integer from number in linux (BASH)
- How can I trim white space from a variable in awk?
- How do you filter out all unique lines in a file?
- Linux shell sort file according to the second column?
- Count lines in large files
- How to convert hex to ASCII characters in the Linux shell?