Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Jimmy Clark wrote:Have Perl program write output to a temporary file and then have following Java code read the file.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
James Sabre wrote:
Jimmy Clark wrote:Have Perl program write output to a temporary file and then have following Java code read the file.
Ouch! Why would one do that when the Perl stdout is available to the Java Process? All one has to do is to read the traps article to see how to access the Process stdout and to do a 'man perl' to see the options available for presenting the Perl script to Perl.
Paul Clapham wrote:
If I understand Avi's post correctly (but correct me if I am wrong), he already knows how to do that and is doing it successfully, except when the use of the -e option causes it to not work.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
James Sabre wrote:Read the article and implement ALL of the recommendations. Failure to do so will leave you very frustrated.
Avi Abrami wrote:
James Sabre wrote:Read the article and implement ALL of the recommendations. Failure to do so will leave you very frustrated.
I have read the article and I am implementing all of its recommendations.
When I pass the name of a perl script, it works without any problems.
When I use the "-e" flag, I get no output via the process's standard output stream.
I will investigate how to pipe the script to perl's standard input.
(Unless you care to enlighten me here.)
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.