Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Keep It Simple, Stupid
 
PerlMonks  

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

by pvaldes (Hermit)
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 (Chaplain) 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 taking refuge in the Monastery: (7)
As of 2014-04-23 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (555 votes), past polls