I want to run a bash script on my server using a Node js function and get the result back in Node through a callback. Sample script is as follows -
grep -c "eventName" 111data.csv
Is this possible? I looked at the following module but looks very complex. Does anyone know of a way this can be done?
https://www.npmjs.com/package/bashjs
execandchild_process? nodejs.org/api/child_process.html