Sometimes redirecting stdout isn't enough