Passing Unknown Number Of Arguments to Python Script from NodeJS via Command Line

I have a node server that executes an external python script via child_process execFile() I have no problem executing it with a known number of arguments i just pass it like const { execFile } = require(‘node:child_process’); const child = execFile(‘python’, [conf.default.python_dir + "/script.py", arg1, arg2, arg3, arg4], (error:string, stdout:string, stderr:string) => { if (error)… Read More Passing Unknown Number Of Arguments to Python Script from NodeJS via Command Line