Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Juan — — source: Informix-list mailing list archive (1991-1998)
In article , Robert says...
>
>
>Is there a command I pipe into dbaccess that will return a list of all
>available databases on a particular server? I'm looking for something
>similar to the "INFO STATUS" command.
>
>--
>Rob Hale
I use the following script to get the list of databases from a particular
Informix instance (I have Online 5.06 under SCO Open Server 5.02)
tbcheck -pe | awk 'NF == 3 && $1 ~ /:/ { split($1, t, ":"); dbnames[t[1]] }
END { for ( d in dbnames ) print d }'
It has been particulary useful in automated tasks, such as CRON's to check
indexes.
Hope this helps...
-----
Juan Manuel De Villeros
jmdv@usa.net
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.