Carlos, On Monday 25 September 2006 05:21, Carlos E. R. wrote:
...
I have perhaps hundreds of them, even if I try to redirect to /dev/null, becasue they come on the error file thing.
use &>/dev/null to redirect all channels there.
I always forget that...
And keep in mind that BASH and ZSH have a different redirection syntax than csh / tcsh. The one Markus gave is for BASH and ZSH. Furthermore, order matters, so this: % OutAndErrCommand >outFile 2>&1 redirects the standard output to outFile and then merges standard error onto that stream so the standard output and standard error both go to outFile. On the other hand, this: % OutAndErrCommand 2>&1 >outFile is no different than this: % OutAndErrCommand >outFile because merging err onto the standard output descriptor before redirecting standard output is redirected to a file has no effect.
-- Cheers, Carlos E. R.
Randall Schulz