We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › open external program from processing
Page Index Toggle Pages: 1
open external program from processing (Read 669 times)
open external program from processing
Nov 9th, 2006, 1:23pm
 
hi, is there any way of open an external software from a processing software?
is there any command for doing this?

many thanx
Re: open external program from processing
Reply #1 - Nov 9th, 2006, 3:18pm
 
You can do this with Java:

Code:

Runtime runtime = Runtime.getRuntime();
Process process= runtime.exec("path to your app");
OutputStreamWriter osw = new OutputStreamWriter(process.getOutputStream());


Re: open external program from processing
Reply #2 - Nov 9th, 2006, 7:43pm
 
if you don't need output from it, you can also just use open("/path/to/your/app").
Page Index Toggle Pages: 1