How to create a child process in nodejs (exec, execFile and spawn)

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 59

  • @FP_95
    @FP_95 5 месяцев назад

    GOD tier masterclass indeed. Concise and to the point. Not even 15mins long!
    Saving it to my -Always useful- watch list.
    Thanks! ✌

  • @stith_pragya
    @stith_pragya Год назад +2

    Thank You so Much for providing such a wonderful video..........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

  • @RizwanIshakthesinister
    @RizwanIshakthesinister 2 года назад +1

    Thank you for that well put explanation

  • @examsubway2034
    @examsubway2034 3 года назад +1

    Man you will live for 100 years

  • @biltten5786
    @biltten5786 3 года назад +1

    I really did not understand what is point of creating a child here

  • @p._7555
    @p._7555 Год назад +1

    minute 2:00 and I'm already loving your vscode setup 😍😍

    • @p._7555
      @p._7555 Год назад +1

      theme, FONT and CONSOLE

  • @kayderl
    @kayderl Год назад +1

    I like how he calls himself “killer”

  • @jantack7186
    @jantack7186 3 месяца назад

    Thanks! Very helpful!

  • @danielnadar75
    @danielnadar75 2 года назад

    Awesome stuff!!! Keep up the great work.

  • @smartguy3k
    @smartguy3k 2 года назад +1

    very well explained. Thanks

  • @karlang2637
    @karlang2637 3 года назад +1

    Amazing explanation. Thank you.

  • @rishavkumar1
    @rishavkumar1 3 года назад

    You are amazing bro!! Thanks a lot for making me understand.

  • @yeshh7993
    @yeshh7993 3 года назад

    Thanks man really appreciated this tuto

  • @sifagayev7793
    @sifagayev7793 Год назад

    that cursive font came out of nowhere

  • @riteshthakur9250
    @riteshthakur9250 3 года назад

    Amazing video as always

  • @SpencerDavis2000
    @SpencerDavis2000 3 года назад +1

    very helpful video thank you :)

  • @Vishal360
    @Vishal360 Год назад +1

    crystal clear

  • @SuperQuwertz
    @SuperQuwertz 2 года назад

    Thank you! Really helpful :)

  • @jothinayagan.iyyappan
    @jothinayagan.iyyappan 3 года назад

    This video made my day. TQSM 🔥

  • @imthelordoflove5362
    @imthelordoflove5362 2 года назад

    thank you very much brother you literally saved me😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭

  • @bhupendersoni5467
    @bhupendersoni5467 Год назад

    Dude which keyboard are you using? Keystrock sound is so crispy. Please reply.

  • @rahulbera454
    @rahulbera454 3 года назад

    amazing just on point !!! Keep pushing content like see. Btw what zsh theme you are using ???

  • @razx2009
    @razx2009 Год назад

    which mechanical keyboard are you using ? I liked the sound of it

  • @DeaHHone
    @DeaHHone 3 года назад +1

    Thanks!!!!

  • @angryman9333
    @angryman9333 2 года назад

    you a legend

  • @user-vv9lz2ik2t
    @user-vv9lz2ik2t 3 года назад +1

    Thanks

  • @dulalsandip7950
    @dulalsandip7950 3 года назад +1

    where can we see the real application of child process in our software application?

    • @mafiacodes
      @mafiacodes  3 года назад +3

      Like for example ur making cmd line applications, or u want to exec some script on certain conditions, or if u want to train an ml model on different thread, or if u want to backup database.
      This db backup example is coming in a couple of days and u can see the real application

    • @dulalsandip7950
      @dulalsandip7950 3 года назад +1

      @@mafiacodes sounds great. waiting for the real application of child process video desperately and waiting for npm packages video too how you made.The best channel ever seen on node.hats off to your effort sir

  • @DTUSEM
    @DTUSEM 2 года назад +1

    This can help to build online judge for online editor for programming language.

  • @technoinfoworldwide2329
    @technoinfoworldwide2329 3 года назад

    I am waiting for your video tutorial how you made your npm packages

  • @jaggesher
    @jaggesher 3 года назад +1

    First of all thanks For this awesome content.
    I have another query, Can I have your vs code config?

  • @sian4d
    @sian4d 2 года назад

    Exelente, muchas gracias

  • @atultiwaree6023
    @atultiwaree6023 Год назад

    I'm getting error spawn enoent, when running command other than node --version in windows machine please help

  • @AnupKumar-fy4ub
    @AnupKumar-fy4ub Год назад

    How to run mongodb shell commands? it's not working with this.

  • @ahmedhassaballa9909
    @ahmedhassaballa9909 Год назад

    Hi can you please help me to figure out what is cmd equivalent for FIND for windows PowerShell ? much appreciated thank you

  • @mthaha2735
    @mthaha2735 3 года назад

    Where would these modules be useful. Or they have a particular use case that you have shown in the video?

  • @soumityachauhan8609
    @soumityachauhan8609 3 года назад

    when i trun on my laptop hotspot
    With that when i connect some external device with that hotspot
    My local server should be listen that external device
    With node please help
    Thankyou

  • @sivaragu3391
    @sivaragu3391 2 года назад

    Thanks for the explanation brother…
    Im trying to open exe by using this,it is working in my local machine but after deployment it is not working why..any idea?
    Im calling this method from angular application

  • @suryapratap9915
    @suryapratap9915 Год назад

    @mafiacodes Can I run javascript file also using execFile ?

  • @DemPilafian
    @DemPilafian Год назад

    Using *require?* Is this video from 2021 or from 2011?

  • @itsmochino
    @itsmochino 8 месяцев назад

    i came because curios, about how to send stdin while using child_process. e.g if i hve file `inp.js` which using readline-sync for prompt input. and i also have `call.js` to call `inp.js` using child_process, i want to send input and press enter. i' was tryng research, but still stuck bad.

    • @Uthalerebaba-nr4qi
      @Uthalerebaba-nr4qi 2 месяца назад

      Did you find out how to do it?

    • @itsmochino
      @itsmochino 2 месяца назад

      @@Uthalerebaba-nr4qi yes, i have applied it in my project. just do:
      const output = execSync(command, { input: "0
      " }).toString();

  • @mukundthakare1041
    @mukundthakare1041 2 года назад

    Hello
    Thanks for the explanation.
    I have doubt regarding the spawn.
    Can I use Spawn to launch the .exe file (.exe is a console application developed using the visual studio, which renders different shapes using openGL and transfer rendered data to the server and then server display this data on the browser ? )
    Right now the issue I am facing is whenever I launch the .exe using spawn I am not able to render anything in openGL context.

  • @riteshthakur9250
    @riteshthakur9250 3 года назад

    Can you make a code review session on your channel where we can submit our git repo and you can review our repo and tell how can we improve our code and review our repo😊

    • @mafiacodes
      @mafiacodes  3 года назад +3

      Seems interesting, will see how we can do it.

  • @soumityachauhan8609
    @soumityachauhan8609 3 года назад

    ls -lh. Is not working ?
    And when i hit ls -lh in cmd
    Show err ls not recognized
    Thankyou awesome video

    • @mafiacodes
      @mafiacodes  3 года назад

      Use an equivalent windows command like - dir

  • @biltten5786
    @biltten5786 3 года назад

    please add links to prev,next video or at least add video number

  • @andyalejandro9523
    @andyalejandro9523 3 года назад

    Need lovely 😍💋 💝💖❤️

  • @sayanbhattacharyya1455
    @sayanbhattacharyya1455 2 года назад

    I am trying to run a compiled c program using spawn, but is showing error. I am using Linux.
    events.js:174
    throw er; // Unhandled 'error' event
    ^
    Error: spawn a ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    [... lines matching original stack trace ...]
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    please help me.

    • @mafiacodes
      @mafiacodes  2 года назад

      it should not, may try on a different machine, if there also you get an error, share your repo

  • @estakenyajarn3693
    @estakenyajarn3693 3 года назад

    I'm Alone 😍😥