tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cato, Christopher" <cc...@rational.com>
Subject runtime.exec() problem
Date Wed, 20 Dec 2000 01:09:58 GMT
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 <ccato@rational.com>
Rational Software Nordic AB / ECAT - Ericsson Corporate Account Team 

Mime
View raw message