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

  Рет қаралды 61,194

Mafia Codes

Mafia Codes

Күн бұрын

Пікірлер: 59
@FP_95
@FP_95 9 ай бұрын
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 Жыл бұрын
Thank You so Much for providing such a wonderful video..........🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@RizwanIshakthesinister
@RizwanIshakthesinister 2 жыл бұрын
Thank you for that well put explanation
@mafiacodes
@mafiacodes 2 жыл бұрын
You are very welcome
@jantack7186
@jantack7186 7 ай бұрын
Thanks! Very helpful!
@p._7555
@p._7555 Жыл бұрын
minute 2:00 and I'm already loving your vscode setup 😍😍
@p._7555
@p._7555 Жыл бұрын
theme, FONT and CONSOLE
@smartguy3k
@smartguy3k 3 жыл бұрын
very well explained. Thanks
@suryapratap9915
@suryapratap9915 Жыл бұрын
@mafiacodes Can I run javascript file also using execFile ?
@imthelordoflove5362
@imthelordoflove5362 2 жыл бұрын
thank you very much brother you literally saved me😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭
@examsubway2034
@examsubway2034 3 жыл бұрын
Man you will live for 100 years
@danielnadar75
@danielnadar75 3 жыл бұрын
Awesome stuff!!! Keep up the great work.
@yeshh7993
@yeshh7993 3 жыл бұрын
Thanks man really appreciated this tuto
@riteshthakur9250
@riteshthakur9250 4 жыл бұрын
Amazing video as always
@karlang2637
@karlang2637 3 жыл бұрын
Amazing explanation. Thank you.
@jothinayagan.iyyappan
@jothinayagan.iyyappan 3 жыл бұрын
This video made my day. TQSM 🔥
@mafiacodes
@mafiacodes 3 жыл бұрын
My pleasure 😊
@ahmedhassaballa9909
@ahmedhassaballa9909 Жыл бұрын
Hi can you please help me to figure out what is cmd equivalent for FIND for windows PowerShell ? much appreciated thank you
@SuperQuwertz
@SuperQuwertz 2 жыл бұрын
Thank you! Really helpful :)
@rishavkumar1
@rishavkumar1 3 жыл бұрын
You are amazing bro!! Thanks a lot for making me understand.
@bhupendersoni5467
@bhupendersoni5467 Жыл бұрын
Dude which keyboard are you using? Keystrock sound is so crispy. Please reply.
@Vishal360
@Vishal360 Жыл бұрын
crystal clear
@kayderl
@kayderl Жыл бұрын
I like how he calls himself “killer”
@SpencerDavis2000
@SpencerDavis2000 3 жыл бұрын
very helpful video thank you :)
@mafiacodes
@mafiacodes 3 жыл бұрын
You're welcome!
@angryman9333
@angryman9333 2 жыл бұрын
you a legend
@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
@DeaHHone
@DeaHHone 3 жыл бұрын
Thanks!!!!
@AnupKumar-fy4ub
@AnupKumar-fy4ub 2 жыл бұрын
How to run mongodb shell commands? it's not working with this.
@razx2009
@razx2009 2 жыл бұрын
which mechanical keyboard are you using ? I liked the sound of it
@فريقالأبطال-ت2ك
@فريقالأبطال-ت2ك 3 жыл бұрын
Thanks
@itsmochino
@itsmochino Жыл бұрын
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 7 ай бұрын
Did you find out how to do it?
@itsmochino
@itsmochino 7 ай бұрын
@@Uthalerebaba-nr4qi yes, i have applied it in my project. just do: const output = execSync(command, { input: "0 " }).toString();
@atultiwaree6023
@atultiwaree6023 Жыл бұрын
I'm getting error spawn enoent, when running command other than node --version in windows machine please help
@biltten5786
@biltten5786 3 жыл бұрын
I really did not understand what is point of creating a child here
@rahulbera454
@rahulbera454 3 жыл бұрын
amazing just on point !!! Keep pushing content like see. Btw what zsh theme you are using ???
@soumityachauhan8609
@soumityachauhan8609 4 жыл бұрын
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
@mthaha2735
@mthaha2735 3 жыл бұрын
Where would these modules be useful. Or they have a particular use case that you have shown in the video?
@mafiacodes
@mafiacodes 3 жыл бұрын
depends on use case
@dulalsandip7950
@dulalsandip7950 4 жыл бұрын
where can we see the real application of child process in our software application?
@mafiacodes
@mafiacodes 4 жыл бұрын
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 4 жыл бұрын
@@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 жыл бұрын
This can help to build online judge for online editor for programming language.
@sifagayev7793
@sifagayev7793 2 жыл бұрын
that cursive font came out of nowhere
@jaggesher
@jaggesher 3 жыл бұрын
First of all thanks For this awesome content. I have another query, Can I have your vs code config?
@technoinfoworldwide2329
@technoinfoworldwide2329 4 жыл бұрын
I am waiting for your video tutorial how you made your npm packages
@mukundthakare1041
@mukundthakare1041 3 жыл бұрын
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.
@DemPilafian
@DemPilafian 2 жыл бұрын
Using *require?* Is this video from 2021 or from 2011?
@soumityachauhan8609
@soumityachauhan8609 4 жыл бұрын
ls -lh. Is not working ? And when i hit ls -lh in cmd Show err ls not recognized Thankyou awesome video
@mafiacodes
@mafiacodes 4 жыл бұрын
Use an equivalent windows command like - dir
@riteshthakur9250
@riteshthakur9250 4 жыл бұрын
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 4 жыл бұрын
Seems interesting, will see how we can do it.
@biltten5786
@biltten5786 3 жыл бұрын
please add links to prev,next video or at least add video number
@andyalejandro9523
@andyalejandro9523 4 жыл бұрын
Need lovely 😍💋 💝💖❤️
@sayanbhattacharyya1455
@sayanbhattacharyya1455 3 жыл бұрын
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 3 жыл бұрын
it should not, may try on a different machine, if there also you get an error, share your repo
@fatimaiqra2169
@fatimaiqra2169 3 ай бұрын
Thanks
How to scale NodeJs applications using the cluster module.
13:37
Mafia Codes
Рет қаралды 51 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
When is NodeJS Single-Threaded and when is it Multi-Threaded?
18:42
Hussein Nasser
Рет қаралды 74 М.
All you need to know about "child_process" in Node.js
12:38
Software Developer Diaries
Рет қаралды 10 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 662 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 77 М.
How to generate and use a SSL certificate in NodeJS
13:59
Mafia Codes
Рет қаралды 110 М.
Node.js Tutorial - 61 - Cluster Module
15:10
Codevolution
Рет қаралды 39 М.
How to backup mongodb every night - it's really easy.
17:32
Mafia Codes
Рет қаралды 27 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН