in reply to Background proc requires ENTER keystroke on Windows 2012

Sorry, I got stuck trying to get cpanm to run in my system; without success. (What a steaming pile!)

Have you tried substituting some other command for cpanm? If the substitute doesn't hang it would indicate that it is cpanm; probably a difference in configuration between the systems.

Guesswork here, but from my previous experiences with cpan & cpanp; they tend to make extensive use of Term::* for keyboard handling; providing (crap) history and supposedly "pretty" coloring that makes the output look like a '90s leet hAxoR website -- ie. totally unreadable... {rant grossly abbreviated}

My point is that those modules only seem to "work" on windows if the cmd window sessions are configured with the default settings -- eg. 80x25 screen white on black; no quickedit or tab completion etc. etc. Settings that no one who actually use windows would ever stick with.

My best guess from reading the symptoms is that AWS cmd sessions are not configured with those useless defaults and so Term::* et.al. conflict.

The easy way to test is to replace cpanm with a simple perl script by the same name that just reads the arguments and echos them to both stdout and stderr.

If that works without hanging, you know where to look and what to look for.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Background proc requires ENTER keystroke on Windows 2012

Replies are listed 'Best First'.
Re^2: Background proc requires ENTER keystroke on Windows 2012
by Anonymous Monk on Aug 01, 2016 at 19:34 UTC
    If hanging is a problem, a set PERL_MM_USE_DEFAULT=1 might help, as well as adding --notest
Re^2: Background proc requires ENTER keystroke on Windows 2012
by stevieb (Canon) on Aug 01, 2016 at 19:55 UTC

    It isn't just cpanm that hangs. On the server cmd window, I get the executing: ... output, but then to get the output from the backticks command, I have to hit ENTER.

    I've been in and out this aft, but when I fully return, I'll test whether the code in the backticks runs and just doesn't return, or ENTER needs to be pressed before the backticks code executes. I'm assuming the former (code runs, but doesn't return without ENTER).

    I've tried a few things... including running a CLI instance of perl to output a simple string of text... same result; have to hit ENTER.

      but then to get the output from the backticks command, I have to hit ENTER.

      What happens if you add a \n in the backticks?


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
      In the absence of evidence, opinion is indistinguishable from prejudice.
        "What happens if you add a \n in the backticks?"

        Same effect; on local 2k8 it goes through without having to keystroke, on my AWS 2k12, I have to hit ENTER.