Take a good look at the node.js docs, and show how you are swapping exec for 
spawn. They are different functions and they take different arguments. One 
difference for example is that the second argument in spawn is an array with 
the args and in exec is options for the execution.

http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options

Another big difference is that exec gives you the results in the callback and 
spawn returns a ChildProcess object which is an event emitter, so it is not a 
matter of just swapping which function you are using.

Look at the examples in the docs and translate them to cljs, it should be easy 
and there are plenty of them.

Cheers

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to