J
jrwats
When executing some command via backticks like the following:
$strCmd = <<'HEREDOC';
someExecutable.exe -a -bunch -of -options
HEREDOC
`$strCmd`;
the only way to get output from the result is to do:
$result = `$strCmd`;
print $result;
Is there any way to get output from the command real-time? I don't
even need to save the results, I just want the output to go to stdout
as it would if I had run the command from a bash script.
Thanks,
JW
$strCmd = <<'HEREDOC';
someExecutable.exe -a -bunch -of -options
HEREDOC
`$strCmd`;
the only way to get output from the result is to do:
$result = `$strCmd`;
print $result;
Is there any way to get output from the command real-time? I don't
even need to save the results, I just want the output to go to stdout
as it would if I had run the command from a bash script.
Thanks,
JW