This example does not work:
grep foo /shared/data/bank/homo_sapiens 2> error.log
The error.log is created but is empty. The error message is printed in the terminal:
$ grep foo /shared/data/bank/homo_sapiens 2> error.log
(null): /shared/data/bank/homo_sapiens: Is a directory