kill-process Questions

4

When I start my tcp server from my bash script, I need to kill the previous instance (which may still be listening to the same port) right before the current instance starts listening. I could us...
Hanzelin asked 27/7, 2013 at 5:48

9

I'm trying to kill a docker container, but I got permission denied. I use Ubuntu 20.04, my docker version for client is 20.10.7 and the one for the server is 20.10.11. This is the log I got: Error ...
Parasitize asked 15/3, 2022 at 6:10

11

Solved

If I connect to a docker container $> docker exec -it my_container zsh and inside it I want to kill something I started with ctrl+c I noticed that it takes forever to complete. I've googled a...
Solutrean asked 12/12, 2016 at 9:26

2

I want to free a TCP port during startup of my application (asking confirmation to user), how to get the PID number and then, if the user confirm, kill it? I know I can get this information by net...
Blanketing asked 26/6, 2015 at 5:39

35

Solved

I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not closed properly. And thus I was unable to restartMy tomcat is running on port 8080. I ...
Melodize asked 20/7, 2012 at 16:39

9

Solved

How can I kill some active processes by searching for their .exe filenames in C# .NET or C++?
Pugging asked 27/7, 2010 at 15:42

2

I am creating Processes using ProcessBuilder in my Java Application. The created process executes some FFMPEG commands which actually copy the RTSP streams in specified destination media file. Proc...
Gaitskell asked 14/1, 2015 at 12:11

22

Solved

I'm writing an application in C# that opens an Excel template file for read/write operations. I want to when user closes the application, excel application process has been closed, without saving e...
Unmoved asked 21/7, 2013 at 22:20

5

Solved

I have an ansible playbook to kill running processes and works great most of the time!, however, from time to time we find processes that just can't be killed so, "wait_for" gets to the timeout, th...
Tinworks asked 1/10, 2017 at 18:48

8

Solved

On Windows, subprocess.Popen.terminate calls win32's TerminalProcess. However, the behavior I see is that child processes of the process I am trying to terminate are still running. Why is that? How...
Twocycle asked 5/8, 2009 at 0:53

6

Solved

Getting the following output from running this: ps aux | grep Python Output: user_name 84487 0.0 0.0 0 0 ?? Z 12:15PM 0:00.00 (Python) user_name 84535 0.0 0.0 0 0 ?? Z 12:16PM 0:00.00 (Python) ...
Backflow asked 11/3, 2014 at 19:30

11

Solved

I'm launching a subprocess with the following command: p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) However, when I try to kill using: p.terminate() or p.kill() The comma...
Liven asked 25/1, 2011 at 3:58

1

How should look the Linux command to send terminate signal to the process/PID and if it fails to exit gracefully after 10 seconds kill it? My attempt is: "sudo timeout -vk 5 10 kill PIDhere&qu...
Tonsillectomy asked 23/2, 2022 at 12:38

2

Solved

I have some programm in which multiple processes try to finish some function. My aim now is to stop all the other processes after one process has successfully finished the function. The python prog...
Periodical asked 20/2, 2022 at 9:8

4

Solved

The MySQL database hangs, due to some queries. How can I find the processes and kill them?
Grajeda asked 26/5, 2017 at 1:57

2

Solved

How can I kill a process starting from a given process name? For example: How can I kill program.exe? I've tried the following code which returns the process name starting from a PID but it does...
Brandes asked 4/5, 2017 at 5:9

4

Solved

Is it possible to stop all running processing using the GPU via CUDA, without restarting the machine?
Pifer asked 4/12, 2010 at 15:30

2

My requirement is to kill a process. I have the process name. Below is my code: def kill_process(name): os.system(f"TASKKILL /F /IM {name}") It works for Windows but not for Mac. My req...
Beatup asked 22/1, 2021 at 13:34

2

Solved

Good day.I have horrible situation.I am creating an location share logic within session.I keep that session on server on the mysql.When android hits on that activity,i insert accordingly user infor...
Clotilda asked 17/8, 2016 at 14:13

11

Solved

I am starting Internet Explorer programmatically with code that looks like this: ProcessStartInfo startInfo = new ProcessStartInfo("iexplore.exe"); startInfo.WindowStyle = ProcessWindowStyle.Hidde...
Liquor asked 5/5, 2011 at 17:17

2

Solved

I have written a python program that needs to run for multiple days at a time, because of the constant collection of data. Previously I had no issues running this program for months at a time. I re...
Patton asked 27/2, 2014 at 16:1

3

Solved

In my java application I use Runtime.getRuntime().exec("taskkill /F /IM " + explorer.exe).waitFor(); to close Windows Explorer. This part works because Explorer realy stops working for me. Unf...
Phlebotomy asked 30/12, 2012 at 17:38

3

Solved

I am running a Python program service_host.py, which started multiple processes. And when I use ps -ef | grep python to check the pids, it shows a lot: congmin 26968 22897 0 Jun20 ? 00:00:00 python...
Spectacular asked 29/6, 2020 at 23:27

3

Solved

Kill tomcat service running on any port, Windows using command promt like 8080/ 8005
Noami asked 7/2, 2017 at 7:35

6

Solved

I've read some posts stating that using this method is "not good", shouldn't be used, it's not the right way to "close" the application and it's not how Android works... I understand and accept t...
Nucleoprotein asked 14/6, 2012 at 14:31

© 2022 - 2024 — McMap. All rights reserved.