beckmanel has asked for the wisdom of the Perl Monks concerning the following question:

Apparently when I run a perl program from the task scheduler, and it runs a sub-process and returns data by standard out, the data does not get back to the calling process. This worked in older versions of Windows. I'm using Strawberry Perl v5.20.2 They now have a latest version as 5.32 . Would the new version work with this later version of Windows? If I upgrade the perl version, will modules that have been added to the basic distribution, be lost? Thank You

Replies are listed 'Best First'.
Re: Strawberry perl on Win 2016
by syphilis (Archbishop) on Aug 24, 2023 at 03:50 UTC
Re: Strawberry perl on Win 2016
by harangzsolt33 (Deacon) on Aug 24, 2023 at 02:37 UTC
    I'm not sure I understand your question. Are you planning to upgrade to Windows Server 2022 and Strawberry Perl 5.32? And you are not able to capture stdout when you run a shell command using backticks in Windows Server 2016 with Strawberry Perl 5.20.2? Is that the problem? Is there a way you could reroute stdout to a file perhaps? I'm just trying to understand what's not working. Could you provide a little sample code of what's not working?