Home > database >  how to save PID when executing multiple shell script from one shell script?
how to save PID when executing multiple shell script from one shell script?

Time:03-04

Lets say I have 3 shell scripts First.sh , Second.sh and Third.sh. Then I created

Forth.sh with the content

nohup sh First.sh &
nohup sh Second.sh &
nohup sh Third.sh &

How to save PID created by each of the nohup command when I run nohup sh Forth.sh ?

thanks for you time

  • Related