in reply to Re^6: Perl & R ?
in thread Perl & R ?
/dev/null is a special device that acts like a well for your data - it silently eats them and throws them into nowhere. Useful for problems, ain't it? :)/bin/sh -c your-command-here
2>&1 redirects standard error (file descriptor 2, where error messages usually are written) to standard output (file descriptor 1, where normal messages are usually printed). I don't know what the Anonymous Monk wanted to do, but I bet that he should change the order of redirections:
Otherwise, you'll have errors on the standard output, and the normal standard output thrown away (while I think that he inteded to throw away both of them).... >/dev/null 2>&1
You can learn a bunch of things about the shell viewing the bash man page, anyway.
Flavio
Don't fool yourself.
|
|---|