in reply to Background proc requires ENTER keystroke on Windows 2012

Switching out "cpanm $mod" with "dir" allows your code to work perfectly on an AWS Windows 2012 server I have access to here. As we don't have cpanm, I can't test it with that specific command.

I expect that either cpanm is requiring the additional keypress, or you are running afoul of one or more Windows security settings (are you running in an Administrator command prompt?)

Replies are listed 'Best First'.
Re^2: Background proc requires ENTER keystroke on Windows 2012
by stevieb (Canon) on Aug 02, 2016 at 14:24 UTC

    Thanks for testing.

    On both my local 2k8r2 boxes, and AWS 2012r2, I'm running as an admin.

    I have the exact same setup both locally and on AWS. I'm in the process of installing a 2012 VM and will test there, and if it works, will upgrade it to R2 and test again. If it works on 2012R2 locally, I know the problem is with Amazon.

    I don't think it's cpanm... running the script in the foreground allows it to go through without any interaction. I'll test with the dir command in my setup and see what happens.

    update: I confirm that sending in the "dir" command works as I would expect on my AWS instances. Weird.