spawn tag

1 questions


1 answers
87 views
0
Using nodejs child_process spawn

I want to run the following code in nodejs.$ gcc test.c$ $ ./a.out < inputfile.txtSo I wrote the following code.var gpp = spawn('g++', ['test.cpp']);var run = spawn('./a.out', ['< input.txt']);v...

2 years ago

© 2024 OneMinuteCode. All rights reserved.