http://www.perlmonks.org?node_id=1007337


in reply to Output capture of CPAN shell

cpan modulename >/tmp/log

works for me

Could be that you need to redirect STDERR too.

cpan modulename >/tmp/log 2> /tmp/err

Cheers Rolf