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.
Mark D. Stock — — source: Informix-list mailing list archive (1991-1998)
Stefan Weideneder wrote:
>
> Hi all,
>
> is there an easy way to find out the page size of an
> OnLine System.
>
> + it's not BUFFSIZE in the CONFIG page
> + neither is it the old BUFFSIZE parameter
> + nor is it "onstat -b"
> + and I don't want to create a table with 16KB and look
> for the pages allocated.
>
> I need an easier way for an ESQL/C program.
Why is it not "onstat -b"? I use the following in shell scripts:
------------------------------------------------------------------------
set `onstat -b |tail -2`
while [ $# -ge 3 ]
do
if [ "X$2" = "Xbuffer" -a "X$3" = "Xsize" ]
then
BUFFSIZE=`expr $1 / 1024`
break
fi
shift
done
echo $BUFFSIZE
------------------------------------------------------------------------
Cheers,
--
Mark.
+----------------------------------------------------------+-----------+
|Mark D. Stock - Informix SA http://www.informix.com |//////// /|
|mailto:mdstock@informix.com http://www.informix.com/idn |///// / //|
|http://www.iiug.org +-----------------------------------+//// / ///|
| Tel: +27 11 807 0313 |If it's slow, the users complain. |/// / ////|
| Fax: +27 11 807 2594 |If it's fast, the users keep quiet.|// / /////|
|Cell: +27 83 250 2325 |Therefore, "No news: travels fast"!|/ ////////|
+----------------------+-----------------------------------+-----------+
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.