On Mon, 08 Aug 2016, Francois Pussault <fpussa...@contactoffice.fr> wrote:
>> ----------------------------------------
>> From: Craig Skinner <skin...@britvault.co.uk>
>> Sent: Mon Aug 08 09:49:11 CEST 2016
>> To: <misc@openbsd.org>
>> Subject: Re: Logging/backup .ksh_history
>>
>>
>> Hi John,
>>
>> On 2016-08-08 Mon 14:39 PM |, johnw wrote:
>> > Hi, I use /bin/ksh as a console/terminal shell program, I want to
>> > log/backup all command, run on console/terminal/ksh,
>> >
>> > Any idea how to do this?
>> >
>>
>> See HISTFILE and HISTSIZE in ksh(1).
>>
>> Cheers,
>> --
>> It isn't easy being a Friday kind of person in a Monday kind of world.
>>
>
> Using Ksh options is a good idea but that logs only the current user.
>
> a if you wanna get all actions even using successive multiples users with su,
> you might use a screen session to log absolute console instead of logging
> history.
>
> screen OPTIONS  2>&1 /var/log/screen.session.$$.$(date +%Y%m%d).log
>
> This is barbarian version but very usefull sometimes.

Also try script(1).

http://man.openbsd.org/OpenBSD-current/man1/script.1

Reply via email to