script -c 'TERM=dumb cpan' -a mylog.txt