0
pipe(): Too many open files

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Error spawning

That's my error. My code is:

grep  = spawn 'ls' 

UPDATE

for tweet in indexedTweetsResults exec 'ls', (error, stdout, stderr) -> console.log stdout

This is my code and it errors with the pipe error. Any ideas?

3

1 Answer 1

1

YOu need to do

exec = require("child_process").exec

and then somewhere do

exec("ls", function(error, stdout, stderr) {
   // handle error, stdout, stderr
});

you have to write javascript....

Sign up to request clarification or add additional context in comments.

1 Comment

Strange - I have this in a function that's called 2 functions in and it returns the error. If it's the only thing in the file, then it works fine

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.