Is there a way to kill a child process started using exec? Believe it or not, not all applications just end (such as ls) but continue unless you exit them using the control-c shortcut. Is there a way to replicate this via code. I want to kill the process. Here is some code that initializes the process, if that helps.
const notcp = require("child_process");
notcp.exec("./IAmAnAppThatDoesntJustStop.sh", (error, stdout, stderr) => {
//
});