logging console commands

Hello,

We are looking at a way to log all commands executed from a console.
Something more complete than the “/etc/acclog” file which only logs logins.
We have looked at available options in “ksh” but found nothing.
Has anyone done something like this ? Any suggestions ?

TIA,
Cesar.

Cesar Hernandez <chernandez@videotron.ca> wrote:

Hello,

We are looking at a way to log all commands executed from a console.
Something more complete than the “/etc/acclog” file which only logs logins.
We have looked at available options in “ksh” but found nothing.
Has anyone done something like this ? Any suggestions ?

Take a look at:

ftp.qnx.com:/usr/free/qnx4/os/utils/misc/script.tgz

It will do an interactive shell, with all input & output logged to
a file.

I’m not sure how well it deals with an edit session or such.

(And, if you are looking at it for security reasons, it probably
has multiple holes. Like start an editor, then shell out… giving
a new shell. This might work out.)

There are probably other ways to do this as well.

-David