We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all, since a while i started working a bit with node.js, but there are certain area where i think still processing works better. in a microservices architecture, i would like to make processign generated applet to perform some task. is there a way to manage the stdin and stdout with processing? i would like to use it, or wrap it, as a child process under node.
Answers
https://Discourse.Processing.org/t/how-do-i-get-the-output-of-a-command/769/6
https://Raw.GitHubUserContent.com/GoToLoop/command/patch-1/src/deadpixel/command/Command.java
https://Forum.Processing.org/two/discussion/23471/combining-two-pieces-of-code/p2#Item_51
You need to provide more details. Like what sort of stdin and stdout you want to work with? For stdin, you could use the args passed to a processing sketch if you run it from node.js via the exec command (not tested). The exec command is demonstrated by Shifman here:
Kf
there is a new forum now
...and it is here: https://discourse.processing.org/
The idea is that i would like to generate a gcode with a node app (bidimensional gcode) and i did not found any node module as good as geomerative to get the job done, so i was wandering if integrate it.
Do you mean a that your running Sketch can make output to the direct window via println and receive user input
OR b that your sketch works as a tool for another program so that the sketch receives data and returns data when closing
OR c your sketch has an interface and can communicate with a superior program throughout via that interface?
Basically the second, possibly the third as well :-)
;-)