in reply to How to get installtion Perl modules log?

Why didn't you use script as I previously suggested?

You current approach doesn't log everything because some things might be written to STDERR which the redirect doesn't capture.

Also CPAN might write directly to the terminal (instead of STDIN/STDOUT) which could be the reason why you don't see it.

script takes care of such things, which is why I suggested it.

By the way: your perl script 1.pl has a unix equivalent, it's called tee

Update: Another solution could use Expect.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.