Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: When cpan returns the dreaded "won't install without force"

by pvaldes (Chaplain)
on Mar 24, 2013 at 01:01 UTC ( #1025101=note: print w/ replies, xml ) Need Help??


in reply to When cpan returns the dreaded "won't install without force"

it would be nice if I could have the text printed to my screen also printed to a file

$ cpan install A::Module &>logfile; less logfile


Comment on Re: When cpan returns the dreaded "won't install without force"
Download Code
Re^2: When cpan returns the dreaded "won't install without force"
by Lady_Aleena (Deacon) on Mar 24, 2013 at 05:08 UTC

    Sorry pvaldes, I did not specify earlier I was on a Windows machine. What you submitted looks like *nix. Right?

    Have a cookie and a very nice day!
    Lady Aleena

      What you submitted looks like *nix. Right?

      I can't tell, it certainly doesn't look like The Windows NT Command Shell, maybe it is powershell

      The windows cmd.exe version might look like  cpan install ...   >myUnified.log 2>&1

      or

      use Capture::Tiny qw' capture_merged '; my $log = 'myUnified.log' ; open my($fh), '>', $log or die $^E; print $fh capture_merged { system qw[ cpan install ... ]; }; close $fh; system 1, 'notepad.exe', $log;
      Yes, it's redirection of stdout and stderr to a file in bash.

        pvaldes, I had to look up what bash was. So bash is to *nix as command prompt is to Windows, both are shells. Got it. :)

        Have a cookie and a very nice day!
        Lady Aleena

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025101]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-07-06 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls