Avoid 'dead filter commands that never terminate' by close everything except fd 0, 1, 2 before running the filter command.