I'm having difficulty trying to get open3() to redirect the output of the command.
In my case, I am using open3 to open multidirectional pipe to /usr/bin/osascript. I write the script to be run, it runs, but the output does not come to my filehandle, but instead goes to STDOUT. Any suggestions?
I've tried using regular variables, named filehandles, and object-oriented handles to no avail.
my ($i, $o, $e);
open3($i, $o, $e, '/usr/bin/osascript');
print $i 'path to startup disk as string\n';
close $i;
At this point I should be able to read from $o and get the output, but instead it is empty, and the output is sitting in the Terminal window.
Any help appreciated.
nh
