Answer the question
In order to leave comments, you need to log in
When terminating the process via pkill, Ubuntu swears in a new window, they say "the application suddenly closed" - what to do about it?
Here:
but I don’t need such a window,
I applied pkill precisely because I want to shut down VSC through a bash script (I was advised in an adjacent topic: pkill -f code )
can I somehow resolve this?
and is it generally correct to terminate the program in this way, since Ubuntu swears?
Answer the question
In order to leave comments, you need to log in
It is necessary to send not the KILL (9) signal, but the TERM signal. If the program is written by direct hands, it must process it correctly.
The command would be kill [process PID]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question