Take a look here. It should be:
yourcommand &> filename
It redirects both standard output and standard error to file filename.
Take a look here. It should be:
yourcommand &> filename
It redirects both standard output and standard error to file filename.