" I also recognized that I could not redirect STDERR with out also redirecting STDOUT. The answer where by programA sends STDOUT to STDIN of programB, then redirects STDERR to your log file: programA 2> /var/log/programA.log AkeoAkeo 20611 silver badge44 bronze badges Include a comment Even in situations where not strictly necessary, it's pleasan