" I also observed that I could not redirect STDERR devoid of also redirecting STDOUT. The answer wherever programA sends STDOUT to STDIN of programB, then redirects STDERR to your log file: programA 2> /var/log/programA.log Stack Exchange community is made of 183 Q&A communities including Stack Overflow, the most important, most reliable on the web