You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Cato, Christopher" <cc...@rational.com> on 2000/12/20 02:09:58 UTC

runtime.exec() problem

Hello. Does anyone know why this call never completes?
It used to work under Jserv 1.1.1 / blackdown jdk_117_v3

// Send the order in an email to the sales admin person
//
String command = ("/home/httpd/cgi-bin/ike_send_submitted_order.cgi " +
userId + " " + userSessionId + " " + siteId);
Runtime runtime = Runtime.getRuntime();
Process process = null;
log("calling mailer with" + userId + "," + userSessionId + "," + siteId);
try 
{
  log("Trying runtime.exec(" + command + ")");
  process = runtime.exec(command);
}
catch (Exception e) 
{ 
  log("Failed:" + e);
  out.println("Unable to send email: " + e);
} 

Mvh / Regards

Christopher Cato <cc...@rational.com>
Rational Software Nordic AB / ECAT - Ericsson Corporate Account Team