How to “capture” child_process output in node.js [closed]

Multi tool use
Multi tool use












1















I'm using youtube-dl to download videos from YouTube. When I call it from node.js spawn child_process, it downloads video, everything works fine, but I'm not able to get any information from child_process to my program.
I would like to get progress information, how much of file is downloaded, or error description if there is any, and so...
Also, I would like to capture data into readable stream in main process instead of saving it directly to file.



Is there any recommendation that you have on how to achieve this?










share|improve this question













closed as off-topic by Twisty Impersonator, fixer1234, Anaksunaman, music2myear, Moses Jan 16 at 17:31


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – fixer1234, music2myear, Moses

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

    – duskwuff
    Jan 14 at 20:12











  • Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

    – Enis Jasarovic
    Jan 14 at 21:45
















1















I'm using youtube-dl to download videos from YouTube. When I call it from node.js spawn child_process, it downloads video, everything works fine, but I'm not able to get any information from child_process to my program.
I would like to get progress information, how much of file is downloaded, or error description if there is any, and so...
Also, I would like to capture data into readable stream in main process instead of saving it directly to file.



Is there any recommendation that you have on how to achieve this?










share|improve this question













closed as off-topic by Twisty Impersonator, fixer1234, Anaksunaman, music2myear, Moses Jan 16 at 17:31


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – fixer1234, music2myear, Moses

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

    – duskwuff
    Jan 14 at 20:12











  • Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

    – Enis Jasarovic
    Jan 14 at 21:45














1












1








1








I'm using youtube-dl to download videos from YouTube. When I call it from node.js spawn child_process, it downloads video, everything works fine, but I'm not able to get any information from child_process to my program.
I would like to get progress information, how much of file is downloaded, or error description if there is any, and so...
Also, I would like to capture data into readable stream in main process instead of saving it directly to file.



Is there any recommendation that you have on how to achieve this?










share|improve this question














I'm using youtube-dl to download videos from YouTube. When I call it from node.js spawn child_process, it downloads video, everything works fine, but I'm not able to get any information from child_process to my program.
I would like to get progress information, how much of file is downloaded, or error description if there is any, and so...
Also, I would like to capture data into readable stream in main process instead of saving it directly to file.



Is there any recommendation that you have on how to achieve this?







javascript node.js youtube-dl






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 14 at 18:58









Enis JasarovicEnis Jasarovic

62




62




closed as off-topic by Twisty Impersonator, fixer1234, Anaksunaman, music2myear, Moses Jan 16 at 17:31


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – fixer1234, music2myear, Moses

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Twisty Impersonator, fixer1234, Anaksunaman, music2myear, Moses Jan 16 at 17:31


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is not about computer hardware or software, within the scope defined in the help center." – fixer1234, music2myear, Moses

If this question can be reworded to fit the rules in the help center, please edit the question.













  • This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

    – duskwuff
    Jan 14 at 20:12











  • Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

    – Enis Jasarovic
    Jan 14 at 21:45



















  • This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

    – duskwuff
    Jan 14 at 20:12











  • Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

    – Enis Jasarovic
    Jan 14 at 21:45

















This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

– duskwuff
Jan 14 at 20:12





This looks like a programming question -- it might be more appropriate on Stack Overflow. (They'll want you to include the code you're currently using in your question, though.)

– duskwuff
Jan 14 at 20:12













Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

– Enis Jasarovic
Jan 14 at 21:45





Yes it's about peogramming. I think that code isn't important here because I need to find out what tool should I use to achieve this. Thanks for response

– Enis Jasarovic
Jan 14 at 21:45










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

gbYqEArQ7Qqkm Jx6HHqLMXsd9umNrXVD,e1jg 6,kdOC80xc,AXSaCzhwZk,R,2GP 6Xw5,Y7l
M09F3o9gYMv6V7b07J3 Hj xpbiw2Cjp bjl0Y40Bv84XVfafP3kHn4D5,9Ee2r,W3CxKJowL6h,LcR FYhW2P0H L78jL1DgsoDjHyx

Popular posts from this blog

Monte Fuji

Theodore Roosevelt

Mangá