Bash scripting (hide sterr messages)
Hi,
I'm writing a bash script and having two problems. Both of which could be solved (I think) in the same way, I'm just not sure how to. I am running an external command and it's writing a message to /dev/stderr. In my bash script I want to capture that message and not let it display to the screen. I know for /dev/stdout I can just use the '>' operator to capture it or send it to /dev/null, but this does not capture anything going to /dev/stderr as far as I can tell. Any ideas on how I can do this?
Thanks much!
|