Session recording

Kenny Lussier klussier at gmail.com
Mon Mar 31 18:01:54 EDT 2008


On Mon, Mar 31, 2008 at 5:36 PM,  <VirginSnow at vfemail.net> wrote:
> > From: Paul Lussier <p.lussier at comcast.net>
>  > Date: Mon, 31 Mar 2008 12:03:21 -0500
>  > Cc: Greater NH Linux User Group <gnhlug-discuss at mail.gnhlug.org>
>
>
>  > > file would need to be writable by the user, which defeats the point of
>  > > all the logging :-)
>  > >
>  > Wow, the lack of creativity here is astounding! :)
>  >
>  > /etc/bashrc:
>  > ...
>  >  export PS1='[ `date` ]'
>  > ...
>  >
>
>  Note: That will probably not do what you intended...  Each time a
>  prompt is issued, the same exact prompt will be issued, namely
>  "[ Mon Mar 31 17:32:54 UTC 2008]".  "date" will not be rerun
>  before each prompt.  To do that, you need to use $PROMPT_COMMAND.

Oddly enough, it seems to do exactly what I wanted it to do. I did
nothing but hit enter, it the time increments.

[ Mon Mar 31 18:00:09 EDT 2008 ]
[ Mon Mar 31 18:00:12 EDT 2008 ]
[ Mon Mar 31 18:00:13 EDT 2008 ]
[ Mon Mar 31 18:00:14 EDT 2008 ]
[ Mon Mar 31 18:00:16 EDT 2008 ]
[ Mon Mar 31 18:00:17 EDT 2008 ]
[ Mon Mar 31 18:00:18 EDT 2008 ]
[ Mon Mar 31 18:00:18 EDT 2008 ]
[ Mon Mar 31 18:00:19 EDT 2008 ]
[ Mon Mar 31 18:00:20 EDT 2008 ]

Now, if I can just pipe script through logger, I'll be all set :-)

C-Ya,
Kenny


More information about the gnhlug-discuss mailing list