Lately I have been doing a lot of scripting for Oracle databases. Now I need to write a script to check to see if an Ingres database is still running, even though I don't know anything about Ingres.

Can anyone post a script that will check to see if a given Ingres database up, running and available?

Many thanks!