in reply to Re^3: Problem running shell command from Perl
in thread Problem running shell command from Perl
Edit: Let's say that the Notepad version of BAT file works and the Perl version BAT file works also and they match. But then when you put the command between backticks, it fails. That would tell us that when perl sends the string to be executed by the shell, something happens to the string and it changes from Unicode to ASCII. Then I don't know what other option you have. But maybe try system("something > tempfile.txt"); and see what that does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Problem running shell command from Perl
by CrashBlossom (Beadle) on Jun 20, 2023 at 18:59 UTC | |
by harangzsolt33 (Deacon) on Jun 20, 2023 at 19:12 UTC | |
by CrashBlossom (Beadle) on Jun 20, 2023 at 19:40 UTC |