Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofSystem with Poco::Process. #2162

Closed
diasbruno opened this issue Jun 29, 2013 · 9 comments
Closed

ofSystem with Poco::Process. #2162

diasbruno opened this issue Jun 29, 2013 · 9 comments

Comments

@diasbruno
Copy link

i'm writing an app with a node.js backend, so i'm using a lot ofSystem. the current implementation seems to be inconsistent. with Poco::Process, it works fine.

the new ofSystem would be something like this.

// like 'ofFileDialogResult'.
class ofSystemResult {
public:
    ofSystemResult();

    string result;
    int exit_code;      
};

ofSystemResult ofSystem( string cmd, ofSystemArgs& args );
@bilderbuchi
Copy link
Member

I'm not exactly sure what this is about - @kylemcdonald @arturoc @ofTheo could you take a look?

@ofTheo
Copy link
Member

ofTheo commented Jul 8, 2013

the PR #2164 attached to this looks good to me.
its nice that you can get back the output of the system command.
+1 once its been updated with develop

@bilderbuchi
Copy link
Member

@ofTheo the PR should already be up to date with develop, don't let yourself be mislead by the merge status warning - that Travis message is from the CI/unit tests that @diasbruno is running with his copy of OF.

@arturoc
Copy link
Member

arturoc commented Jul 8, 2013

only thing i would change is the second parameter to be something that it's not Poco dependent, can we pass an array of strings or something similar? we can even inherit or typedef from the poco class

@diasbruno
Copy link
Author

yep @arturoc. i forgot to change it.

typedef Poco::Process::Args ofSystemArgs. (std::vector).

@arturoc
Copy link
Member

arturoc commented Jul 8, 2013

yes, if you can change that i think it's good to merge

@diasbruno
Copy link
Author

the PR has the type definition.

i forget to change code in the description. :)

@bakercp
Copy link
Member

bakercp commented Jul 28, 2014

Hi all, I'm not sure what happened here -- it seems the PR was closed?

#2164

We need this to be fixed for ofSketch because ofSystem doesn't work correctly on Raspberry pi (ofGetTargetSystem()) olab-io/ofSketch#58.

I'm happy to pull apart the old PR and resubmit it -- unless @diasbruno has a clean PR to submit.

@bakercp
Copy link
Member

bakercp commented May 23, 2017

Closing this, as Poco is no longer part of the core. If there is a discussion of a non-Poco way to implement it, then let's reopen because the need is probably still there.

@bakercp bakercp closed this as completed May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants