title: Redirect stdout and stderr in Windows Service
body: <p>I created a windows service that can execute processes exposed via wcf (internal use only).  I recently ran into an issue where this works fine if I execute the process (cmd.exe) directly, but when installed to run as LOCALSYSTEM, output and error redirection didn't work.  After a day or so, I figured out that if I also redirect stdin, things work fine.  I found a related thread <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/4ce40b19-c442-4412-94b2-1ed24bdb9386" rel="noreferrer">here</a>, but no real resolution.</p>
  
  <p>Anyway, I was wondering if anyone knows the reason for this and are there known issues with output in Windows Services?</p>
  
  <p>One complication is that I recently installed W7 SP1, so I'm not sure if this changed the behavior or not since I haven't had a chance to uninstall and try again.</p>