[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tastatureingaben per Shell mit loggen?



Hallo Dirk!

Dirk Salva schrieb am Montag, den 16. November 2009:

> On Mon, Nov 16, 2009 at 09:48:18AM +0100, Christian Brabandt wrote:
> > if `echo "$PROMPT_COMMAND" | grep -vq history` ; then

Wenn $PROMPT_COMMAND history nicht enthält, dann

> > export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; } history -a ; history -n " ;

setze PROMPT_COMMAND auf PROMPT_COMMAND und hänge die Zeichenfolge
history -a ; history -n an

#v+
help history
[…]
    append the contents to the history list instead.  `-a' means
    to append history lines from this session to the history file.
    Argument `-n' means to read all history lines not already read
    from the history file and append them to the history list.
[…]
#v-


> Kannst Du mir bitte auch mal erklären, was die einzelnen Elemente
> machen?

[X] done

Grüße
Christian
-- 
Real programmers confuse Halloween and Christmas because OCT 31 = DEC 25


Reply to: