in reply to Screen Scrape I think

I am trying to get a script to both monitor a legacy Unix DB server services, and if they are stopped to start them.
I'd use a standard monitoring application, and if it doesn't come with a plugin for your DB server, and you can't find one on the net, write a plugin in your favourite language.

It wouldn't be efficient to write one from scratch, specially not if you're unfamiliar with the language.