This will work for many commands but some will fail if they don't have STDOUT and/or STDERR open.
In reply to Re^2: Disable output from system by ig in thread Disable output from system by ewhitt