1
I’d like to know how I give kill
in a process running with javascript
.
To do this with the cmd
you must first list capture the PID
and execute the command taskKill
with the PID
as follows:
netstat –ano | more
CTRL + C
taskKill.exe /F /PID 6676
I’d like to run it automatic by javascript
.
You want to do this using a browser?
– Wictor Chaves
want to use to run and finaziar backend in an application . js
– Eduardo Moritz
If you’re using Nodejs, there are a few ways, one I found is this
process.kill(process.pid, 'SIGHUP');
, no link https://nodejs.org/api/process.html#process_process_kill_pid_signal. But if you are running in the browser, unfortunately you cannot do this– edson alves
Many use this https://www.npmjs.com/package/shelljslibrary
– Renato Junior