I ended up doing this using spawn instead of fork, which works fine.

Thanks,
Klaus

On Saturday, January 12, 2013 2:06:43 PM UTC-8, Klaus Ganser wrote:
>
> Hello,
>
> I was wondering if there was a way to redirect the error output when 
> forking a process with a file that does not compile due to syntax errors. 
>  I tried handling the uncaughtException event and redefining 
> process.stderr.write as described 
> here<https://groups.google.com/d/msg/nodejs/RvrOa1Ch964/PrkkaxkyOm4J>, 
> but was still not able to capture the error output.
>
> Thanks,
> Klaus
>

-- 
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

Reply via email to