in reply to Output capture of CPAN shell
works for me
Could be that you need to redirect STDERR too.
cpan modulename >/tmp/log 2> /tmp/err
Cheers Rolf