pipe(): Too many open files
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Error spawn开发者_JS百科ing
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?
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....
精彩评论