I am trying to run a Linux command in Perl using backlinks. It works when I run it directly on Linux, but when Perl does this via backlinks, I get this error:
sh: -c: line 0: syntax error near unexpected token `>' sh: -c: line 0: `(/src/storageUtil --diagnostic 2> >(tee >(cat >&2) >&1)) > log.txt'
The line of code in question is:
$output = `(/src/storageUtil --diagnostic 2> >(tee >(cat >&2) >&1)) > log.txt`;
It would be very helpful to understand what might cause this error.
thanks
linux perl backticks
user3307598
source share