I've searched googles and these forums. I have read a lot of information about this, and I thought I was doing it right, but for some reason I cannot figure out why it's not working.
Trying to invoke a perl script from a java servlet:
try
{
Process process = Runtime.getRuntime().exec("perl http://my.url.com/perl/script.pl");
process.waitfor();
}
catch (Exception ex)
{
// doesn't get here..
}
The perl script is generating an XML file and storing it at http://my.url.com/xml/file.xml. If I go to the location of script.pl directly in my browser, the xml file is correctly updated. When my servlet is run, however, the script doesn't seem to be invoked, because the xml file does not update. No exceptions are being thrown. Any ideas as to what the problem might be? Thanks.