I am trying to capture all my session logs into a file(s) , I am using "tee" command for doing it. However I want this as a automatic behaviour for all of my new sessions. Can anyone help me to find a way so whenever I open a new window following command get auto executed ? Additional info : I am using putty and am already aware that session can be captured from putty to my local computer. But here I am interested in capturing it to the server itself.
csh -l |tee my_session_`date +%F%T`