Event logging to file and display to console | tee command is not able to log all info.

view full story

http://www.unix.com – My intention is to log the output to a file as well as it should be displayed on the console > I have used tee ( tee -a ${filename} ) command for this purpose. This is working as expected for first few outputs, after some event loggin nothing is gettting logged in to the file but It is displaying on the console. I can elaborate this. Code: echo -ne "$(date +%c) $*" >> ${filename};echo -e "Thank you for selecting Rose Model Extraction !!!\n" | tee -a ${filename} echo -ne "$(date +%c) $*" >> ${filename};echo -e "Start of taking backups !!! (HowTos)