in reply to When cpan returns the dreaded "won't install without force"
Are you on Windows? If so, the following should work from a command prompt:
cpan install IO::Tty 1> install_test.txt 2>&1That's basically piping STDERR to STDOUT and then STDOUT to a file (install_test.txt). However, you won't see the output on the screen at the same time.
If you have PowerShell installed and really want to display messages and send them to a file, you can use the tee-object cmdlet like the following:
cpan install IO::Tty 2>&1 | Tee-Object -FilePath C:\perl_stuff\install_test2.txtAgain, the "2>&1" is piping STDERR to STDOUT and then the tee-object is sending the output to STDOUT and a file at the same time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: When cpan returns the dreaded "won't install without force"
by Lady_Aleena (Priest) on Mar 24, 2013 at 04:31 UTC | |
by marto (Cardinal) on Mar 24, 2013 at 08:42 UTC | |
by Lady_Aleena (Priest) on Mar 24, 2013 at 19:19 UTC | |
by marto (Cardinal) on Mar 24, 2013 at 20:14 UTC |