We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I've been using processing in a small way for a year or two, some graphics, data link between Arduino and Processing sketch. Have been wanting to interact more with the computer (WXP, W7, RPi) couldn't see how. Now scanning the forum find e.g. Runtime.getRuntime().exec. Where is the documentation for Runtime? I've searched the main Reference and Libraries pages.
Answers
Hello @RichardDl
Is suppossed this "The java.lang.Runtime.exec(String[] cmdarray, String[] envp) method executes the specified command and arguments in a separate process with the specified environment. This is a convenience method. An invocation of the form exec(cmdarray, envp) behaves in exactly the same way as the invocation exec(cmdarray, envp, null)."
Check https://www.tutorialspoint.com/java/lang/runtime_exec_envp.htm
Thanks @laimperiestro. I've had a look at that and tried a couple of other methods.
@GoToLoop - thanks. The basic definition of the RunTime class helps, and good to see people doing the things I thought Processing couldn't.
@RichardDL -- although you are probably already aware of it, I thought in the context of
exec()
it might make sense to mention Processing's built-in functionlaunch()
:From the reference:
As it says, there is also a PApplet.exec(), documented along with launch here:
@jeremydouglas - thanks. I had tried launch, but then forgot about it. I'll try them all in turn eventually.