develooper Front page | perl.jpl | Postings from November 2006

JAVA- PERL PRoblem

From:
Tatiana Lloret Iglesias
Date:
November 30, 2006 09:42
Subject:
JAVA- PERL PRoblem
Message ID:
2f6912940611300941u696a9bd0keaa8a0b3b2fd8427@mail.gmail.com
Hi!

i'm executing PERL code from JAVA with the following instructions:

Process p=Runtime.getRuntime().exec(cmdString);
int exitCode = p.waitFor();
p.destroy();
logger.info("exitCode="+exitCode);
if(exitCode == 0)
{
logger.info("EXITO");
}
else
{
logger.info("FALLO");
}
The script is correctly executed but my problem is that last
logger.infonever appear! it seems like process never end although i
have exit; at the
end of my PERL script . Can it be a Java problem? Thanks!
T.


------
http://cuandomemiras.blogspot.com



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About