How can the normal output of a command be written to a file while discarding the error output?