moved common stdout redirect shell script code to hostapp/redirectlog.src.sh