First of all, I'd look into sockjs if I were you.  I used socket.io for
years and started having trouble.  Sockjs is simpler and more robust.

Node has a very simple way to spawn a process and get the results.  Look up
exec in the docs under child processes.  You just do `exec cmd,
function(err, stdout, stderr){}`. Easy peasy.  No pipes needed.




On Fri, Nov 1, 2013 at 6:19 PM, Matthew Sudol <[email protected]> wrote:

> I'm new to nodeJS but I'm having a lot of fun with tutorials and examples
> and learning all sorts of fun new things I can do.  One thing I want to try
> just for the sake of doing it, I have no real application in mind at the
> moment is this:
>
> client (web browser) -> connects to node app, with socket.io -> spawns
> child process that runs an application on the host  -> application sends
> message back to node app (unix sockets?) -> node app returns message to the
> client that spawned the process -> client and application are now sending
> and receiving messages to each other.
>
> In this application the "app" could be something as simple as a bash
> script that just echoes back whatever messages was sent from the browser as
> part of a form input.
>
> I've got a lot of sample code mashed together and I'm getting close to
> hacking something of my own together, I guess I'd just like to see what/how
> other people would suggest doing this. I'm having the most trouble with the
> child process, and sending messages back to the specific client.
>
> Thanks!
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to