Can we pass arguments to a .sh file in Nodejs, i am trying to Spawn a .sh
file, and want to pass some arguments while spawning,
var command = spawn(__dirname + "/import.sh", {
var1: "abc"
});
in the above command i am trying to spawn the file import.sh and also trying to pass arguments along with it, i don't know if it's the correct way
and how to retrieve the variable value in the import.sh
file?