Currently i need to capture ALL the output of my terminal (bash) for later review. Right now i have the following scripted at the last line of my .bashrc file:
Hereby i source my .bash_profile command; if i leave this command out, my .bash_profile will not be executed at all.
My .bash_profile script has the following content:
export HISTSIZE=999999999 export SYNCPATH="/tmp" export HISTFILE=$SYNCPATH/bash_history_$(date +%d-%m-%Y) shopt -s histappend # append to history, don't overwrite it export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" script -m advanced -a -f -T $SYNCPATH/timeinformation_$(date +%d-%m-%Y) $SYNCPATH/typescript_$(date +%d-%m-%Y)
This works HOWEVER it reexecuting the script command (looks like it is stuck in some kind of loop). See screenshot and it keeps spawning new script processes.
I can quit this by give the command CTRL+D but then the output will not be saved.
Anyone has some tips?