Check for statup process in loop?

I've written a script to check for Oracle's listener, eventman and pmon processes however there are several databases that startup which can take several minutes.

I'd like to add code to my current script that greps for the process �startup� and whether its condition is true or false. If the condition is true, the script will sleep for a time and then grep for the process �startup� again and again as needed. Once the condition is false the script will then execute the rest of the of code and check for the Oracle processes.

Can someone point me in the right direction?

Use a while loop. It's pretty easy to write what you need, but since you asked for a direction not an answer I'll let you work through it :slight_smile:

You can use this link for a bit of information: Bash Reference Manual

If you want the actual tidbit of code say so and I'll peg it out for you