is there a way to pass extra arguments to the callback function when i use
child_process.exec(cmd,callback)
?
According to the documentation, the callback function only receive error,stdout,sterr.
I could eventually have an unix script who gets extra args, runs the command, and outputs result of the command and args to stdout but maybe there is a better way to do this
Thanks