[opencms-dev] executing an application from within OpenCms?

Jason Trump jason.trump at brulant.com
Thu Apr 20 21:56:49 CEST 2006


Have you tried the standard java.lang.Runtime API?

String[] command = { "myprogram", "arg0", "arg1", "arg2" };
Process proc = Runtime.getRuntime().exec(command);

You can then use the "proc" object to examine stdin, stdout, stderr, or
wait for the child process to terminate.

jt

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-
> bounces at opencms.org] On Behalf Of Christoph P. Kukulies
> Sent: Thursday, April 20, 2006 2:06 PM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] executing an application from within OpenCms?
> 
> I have a C-programm (CGIC) I want to execute on the server side.
> (E.g. as a FORM action)
> How can I do that with means of OpenCms?
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list