2&1 does not redirect. Did you mean 2>&1 (note the additional greather-than sign)?
In reply to Re^2: error while piping output by Corion in thread error while piping output by sandy105