Netbackup question

Hello,
I am setting up scripts to do shadow image backups but have found a pitfall I cannot figure out how to work around. Basically what I need to figure out is how to launch a bunch of bpbackups, and then have the script pause until all of the children have exited. The problem is that bpbackup spawns a bpbkar process with a parent of 1. I can't just use pgrep because there may be other bpbkar processes running.

Any thoughts or advice would be appreciated.

I don't know if this will help or not. You could use bpps or bpdbjobs to get more info. The later will tell you if the job is Done or not.

According to the man page, "-w 0" will cause bpbackup to wait for a completion status before it returns. Since you want to launch a bunch of these, background them by appending & to the end of the command line. Wait for all background jobs by using "wait".