ReRe: Check for database instance?
Posted in 1999
Richard Thomas wrote:
>
> Markus Holzbauer wrote in message <36C416FD.E8384589@mch.siemens.de>...
> >
> >
> >FProse wrote:
> >>
> >> For my unix/aix cron jobs I include the following in my scripts:
> >> ======================================================
> >>
> >> # check if online is up
> >> if [ -n "`$INFORMIXDIR/bin/onstat - | grep -i on-line`" ]
> >
> >Does this work ?
Yes, -> grep -i (sometimes I read to fast ...)
> >All my online's (7.1x - 7.3x and the good old 5.x tbstat)
> >tells me "-- On-Line --".
> >The other way is to check the onstat/tbstat return-code.
> >tbstat returns 0, and the 7.x versions return 5.
at the moment.
>
> Hi Markus,
>
> That's brilliant! Now why didn't I ever notice that!!! :-)
Hi Richard,
Why didn't you ever notice that??? ;-)
>
> Richard
Markus