How to obtain the number of active users from esql/c.
Posted in 1992
Does anyone know how to get the number of active Informix users and the total number of Informix licenses using ESQL/C calls. That is, I want to get the two numbers in the last line that "tbstat -u" displays (e.g., 5 active, 20 total) from within a C program. I am trying to avoid the fork() needed to run "tbstat -u" directly in the C program for performance and signal() related reasons. I am running Informix-Online 4.10.UC2. Thanks in advance for any help. Ian -- ------------------------------------------------------------------ Name : Ian Guthrie | Internet: ilg@cc.bellcore.com Company: Bellcore | UUCP : ...bellcore!bcr!ilg Address: 3 Corporate Pl. | Voice : 908.699.3354 Piscataway, NJ 08855 USA | Fax : 908.336.2307 ------------------------------------------------------------------