Is there a way to increase the number of command logged in the history
in ksh (of AIX)? Does it read the environment variable HISTSIZE or something
similar?
Thanks.
Chris
--
Chris Lo mailto: chri...@prudential.com.hk
System Administrator/Informix DBA mailto: ck...@cklo.hk.super.net
The Prudential Assurance (HK) Co. Ltd mailto: ck...@hk.super.net
==============================================================================
-- Linux + FreeBSD + HPUX + Solaris + AIX
==============================================================================
#include <std/disclaimer.h>
The way the Korn shell manages the history file did not satisfy my
needs, so I
decided to configure my environment so upon any new login I can recover
at
least HMINSIZE of my history file, and the recover would occur when the
size
of my history would exceed HMAXSIZE (these variables are from my own,
these
values can be very large).
Doing so garantee me to keep at least about the last HMINSIZE commands I
used
and no more than HMAXSIZE accross successive logins. This allows me to
be able
to recall some commands I used many days before.
I succeeded to do this only by tailing the old history file and create a
new one.
The hint is that there is some kind of a magic character at the
beginning of the
history file. So beware with history files manipulations, because simply
copying
them would not be sufficient.
I am working with Unicos and Irix OS. I do not know if such a magic is
needed with
others shells and systems, so if what I do is applicable everywhere.
Jean-Michel
Yes it does. I put these lines in my "~/.profile" file on AIX:
# Set history size to a huge number
export HISTSIZE=3000
That's all folks!
\|/
@ @
---------------------------------------------------oOO-(_)-OOo----------
Emmanuel "Mercenary" KARTMANN
mailto:ekar...@lucent.com
------------------------------------------------------------------------