> ----------------------------------------
> From: Craig Skinner <[email protected]>
> Sent: Mon Aug 08 09:49:11 CEST 2016
> To: <[email protected]>
> 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.


Cordialement
Francois Pussault
10 chemin de négo saoumos
apt 202 - bat 2
31300 Toulouse
+33 6 17 230 820
[email protected]

Reply via email to