lancer has asked for the wisdom of the Perl Monks concerning the following question:
Hello All!
I'm trying to install a module using the Perl CPAN shell, in a Windows environment. The module install fails with a very long list of errors that scrolls off the top of the "cmd" console. I want to redirect it to a file to be able to read it all.
I've read up on the CPAN documentation and found that output redirection (and even piping) is possible, using syntax such as this:
cpan> install Cairo > install_log.txt
But unfortunately it redirects only STDOUT. The errors still go to the console, and don't get captured in the file.
I want to be able to redirect both STDOUT and STDERR into a file, is this possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirecting STDERR output to file in the cpan shell
by chrestomanci (Priest) on Dec 02, 2010 at 11:04 UTC | |
by lancer (Scribe) on Dec 02, 2010 at 11:34 UTC | |
|
Re: Redirecting STDERR output to file in the cpan shell
by cdarke (Prior) on Dec 02, 2010 at 12:21 UTC | |
by lancer (Scribe) on Dec 02, 2010 at 12:51 UTC | |
by raybies (Chaplain) on Dec 02, 2010 at 13:53 UTC | |
by cdarke (Prior) on Dec 04, 2010 at 14:04 UTC |