in reply to Re^2: Redirecting STDERR output to file in the cpan shell
in thread Redirecting STDERR output to file in the cpan shell

It sometimes helps to pipe to "tee" (see linux command, man tee) the output so that it still appears on your console, but you can capture it. This way if there's any interractive input required by the script you can see the prompts. The 2>&1 directive tells the shell to send STDERR to the same place as STDOUT, that's for the bash shell. For C shell the equivalent redirective would be  >& or for pipe |&.