You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was now hoping that my shell script calling can happen when your directory watcher notices a file change. But as soon as I add ofxIO and ofxPoco to the app ofSystem() hangs when running the script.
Would you know why?
The text was updated successfully, but these errors were encountered:
stephanschulz
changed the title
use ofSystem() call shell script not working in directory watcher
using ofSystem() to call shell script is not working in directory watcher
Oct 24, 2019
I'm not exactly sure -- generally I don't use ofSystem() because it usually doesn't give me enough control. I prefer using https://pocoproject.org/docs/Poco.Process.html which gives you a handle to the process, io streams, etc, and makes it easier to do threading, event queuing etc.
Interesting.
I looked at it but it all seems very new to me.
Do you happen to have an example on how to call a system process (run shell script) via poco process?
I will continue looking in to this.
Thank you very much.
I made a small app that can upload a text file calling a shell script.
https://github.com/antimodular/examples/tree/master/sftp_uploader
I was now hoping that my shell script calling can happen when your directory watcher notices a file change. But as soon as I add ofxIO and ofxPoco to the app ofSystem() hangs when running the script.
Would you know why?
The text was updated successfully, but these errors were encountered: