in reply to Capturing shell command error

See also: Redirecting STDOUT and standard error to file

HTH,

planetscape