A little patch for eaglediag ;-)
echoLog () {
# display to screen & into log file
# add a -n to display without "\n" at the end (result following...)
echo "$@" | tee -a ${LOG_FILE} |
case $TERM in
linux | rxvt | xterm )
sed -e "s/OK/^[[32mOK^[[0m/g" -e "s/KO/^[[31mOK^[[0m/g"
;;
*) cat ;;
esac
}^[ is one character (escape 0x33 ASCII code). If your keyboard is not sufficient: echo -e "\033" >> eaglediag mcoolive.
