only log stdin to separate file when using execcmd