Session recording

VirginSnow at vfemail.net VirginSnow at vfemail.net
Mon Mar 31 17:36:20 EDT 2008


> 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.


More information about the gnhlug-discuss mailing list