Processing: popen() call to start subprocess?

Posted by Mark Harrison on Stack Overflow See other posts from Stack Overflow or by Mark Harrison
Published on 2010-05-21T09:24:45Z Indexed on 2010/05/21 9:30 UTC
Read the original article Hit count: 273

Filed under:

Here's an example of opening and reading data from a TCP socket. Is there a a popen() call or equivalent that can start a child process and read its output?

void setup() {
    c = new Client(this, "127.0.0.1", 12345); // Replace with your server's IP and port
}

void draw() {
    if (c.available() > 0) {
        input = c.readString();

http://www.processing.org/learning/libraries/sharedcanvasclient.html

© Stack Overflow or respective owner

Related posts about processing