I have an irritating problem: redirecting stderr does not work. I get:
iptables: Chain already exists
I can't be bothered to check if a chain exists already (pointless, iptables just throws an error if the chain exists before I flush it in the next step, so why bother checking if it already exists). In order to ignore this, I redirect stderr to /dev/null but this does not seem to work.
In general: how do I:
check which stream is used by a command in bash? is this even possible?
redirect ALL streams output by a command?