Questions tagged [kill]

kill is a UNIX/Linux command to signal a process, by default with a signal to terminate the process. It can also be used to force a process to quit immediately without cleanly exiting or to tell a process to take some action (e.g. to signal a httpd to reread its configuration without restarting).

Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

Kill child processes of an OpenRC service managed by supervise-daemon

I have a shell script that spawns multiple processes, which run for an indefinite amount of time, however with the following OpenRC init script and the supervise-daemon daemon, upon stopping the ...
0
votes
0answers
13 views

Killing Python/TensorFlow process on Linux leaves undeletable files on Windows SMB share

When I run the following code on a Linux workstation, with the working directory on an SMB share on a Windows server, the file created by the TensorFlow file writer cannot be deleted: """Create an ...
0
votes
1answer
28 views

MySQL was killed by watchdog/snapd ubuntu ec2, watchdog is not installed but listing in ps

On one of my servers mysql was killed because of too much memory usage. Before it crashed the memory usage was around 95%. My confusion is what killed the process because I have seen in past whenever ...
0
votes
1answer
67 views

How to kill suspended process by name?

I got a bunch of suspended processes. pkill cannot kill them but pretend to do that. This command actually works: pkill -e SOMENAMEHERE | grep -Eo '[0-9]+' | xargs kill -9 but it's too long to type....
0
votes
0answers
65 views

Changes to MsMpEng.exe in late 2019/2020 make it unquitable

MsMpEng.exe seems to be core to microsoft's anti malware software, therefore it ought to be something I'm thankful for. However, I don't have any control over when it starts and it can be quite ...
2
votes
1answer
232 views

How to terminate TeamViewer application from Mac OS Terminal?

I have tried terminating TeamViewer application from the Mac OS terminal using the following command. It kills the app but again it starts automatically in the very next second. How can can I ...
0
votes
0answers
24 views

View what's killing another Windows process

I'm trying to figure out what (if any) process is killing another process on my Windows 10 machine. When I boot, after logging in, explorer fails to launch and I'm met with a black screen. I can ...
0
votes
0answers
115 views

It is safe to kill every process running on a port?

This is my problem. I'm running a Node.JS API on a Debian server using Nodemon (Because I'm currently programming on my server) and that API is on a Apache Virtual Host using a reverse proxy. I use ...
0
votes
0answers
47 views

How to grep the process of iTunes in Python scripting

import os, signal def check_kill_process(iTunes): for line in os.popen("ps ax | grep " + iTunes + " | grep -v grep"): fields = line.split() pid = fields[0] os.kill(int(pid)...
-1
votes
1answer
111 views

Unable to kill a process (Prometheus) listening on port 9090 keeps restarting

I was using a tool called Prometheus to monitor containers on my VM. Now I want to remove it but it seems impossible. nima@caliper-latest:~/caliper$ sudo lsof -n -i4TCP:9090 COMMAND PID ...
9
votes
5answers
1k views

Killing task by name - start menu shortcut

I have a problem with a specific application that I am executing. The application is full-screen in the foreground. About once per day, it hangs. When it does, I can only open start menu. I cannot ...
0
votes
0answers
51 views

What does it mean when kill -KILL doesn't work to remove the process?

Apple OS X, High Sierra. I'm in terminal, and do "kill -KILL" a process (like Firefox) and ps -ax shows it's still there (although now labeled with "???"). What does it mean when kill -KILL doesn't ...
0
votes
0answers
21 views

Why can't I kill -9 this process? [duplicate]

A moment ago I tried to fill all space in a USB drive by typing yes > a to create a very large file and overwrite the old (sensitive) data. But then, when the file grew to 4GB I got this error, ...
0
votes
0answers
87 views

How can I kill a process like Process-Hacker does

When I look for answers this many times and all the answers I have found just say use "taskkill /IM /F" But that doesn't work when you get access denied from a system process. How can I kill a ...
0
votes
2answers
584 views

What are the Chrome processes which do not terminate with TASKKILL IM?

A batch file is used to close browsers when backing up the user's profile(s). Firefox closes all processes on the taskkill command but Chrome doesn't. In this example, there are nine tasks even ...
0
votes
1answer
25 views

List all processes I can kill, so I can kill them

I need to figure out all the processes I can kill as my user (without privileges), so I can kill them. how do I do that? I just wanna kill everything I can.
1
vote
0answers
43 views

How to kill a program run inside screen that is not responding? [closed]

When running a python program inside a screen, from time to time the program stucks right from the beginning after just starting it and I can't quit it using Ctrl+C. (^C will be typed but no response)....
0
votes
0answers
63 views

Need help killing an impossible-to-kill shell script

I'm trying to kill a REALLY stubborn sh process on a Linux machine, but so far I have had no success. top shows it using 95-100% CPU, and it's in running (R) state, not waiting for I/O (D) or ...
0
votes
0answers
79 views

Automatically kill specific process by name whenever it runs again ubuntu

I somehow need a script to automatically kill a process by it's name on ubuntu, whenever that process runs again. Is there a way to do that?
3
votes
2answers
513 views

trap in freestyle shell script not working in jenkins

I want the gracefull killing of my Jenkins job if someone aborts it, So I tried to trap the abort signal and customise killing step using shell script. But It seems like Jenkins is ignoring all the ...
0
votes
1answer
79 views

How to kill child of target process in Windows

I have multiple processes with the same name.However there are some that have child processes.I want to kill all those children.How can i manage that considering i know only the name of the group of ...
0
votes
1answer
2k views

Composer killed when setup laravel in Godaddy Server

I want to setup my laravel project on Godaddy server but when I am creating laravel project on Godaddy server, composer killed the process. composer require doctrine/dbal composer.json has been ...
1
vote
0answers
73 views

Sending SIGTERM to `script` results in a zombie process

I am implementing a simple system to run jobs remotely via SSH. My goal is to run the job within a screen and record all its output using script and upload the typescript to a server when the job ...
0
votes
1answer
441 views

Restart screenshot process on Mac OS

OSX has simple and useful screenshot hotkeys. Often though they stop working for me. I found that killing the screenshot process through Activity Monitor and re-running it helped and was quicker than ...
0
votes
0answers
31 views

Is there a way to automatically kill a process that its window has been closed?

This is for games that are known to not close properly. Like Anthem right now. Like detect if the window is gone, if it is, then kill process.
0
votes
0answers
255 views

autossh creating many processes

I'm using autossh to connect to a reverse SSH tunnel. I run it from startup. However, I was facing problems in that the tunnel sometimes goes down. I created a script which checks if the tunnel is ...
0
votes
1answer
475 views

Linux: cannot kill “Software & Updates” process

Trying to do a software update, the corresponding program "Software & Updates" got stuck during the cache refresh. How can I kill such a process? I looked at all the running processes with su, ...
2
votes
1answer
2k views

Why do I often receieve `no such process` in response to a process I want to kill?

me@me:~$ ps aux | grep -i firefox me 15413 0.0 0.0 14428 1036 pts/1 S+ 05:46 0:00 grep --color=auto -i firefox me@me:~$ kill 15413 bash: kill: (15413) - No such process Why might this ...
1
vote
1answer
190 views

How to halt an attempted directory listing from pressing tab?

Sometimes I'll accidentally/instinctively double tab in a directory I probably shouldn't have. In the current case, the reason I'm writing this, it is on an old, very full cifs drive. Of course, this ...
0
votes
1answer
112 views

How to remotely terminate bash shell processes but ensure history is saved?

Occasionally my X11 window manager (i3) locks up, and I'm forced to switch to a Linux virtual console, or SSH into my machine, to regain control. Usually this happens when I have numerous rxvt ...
1
vote
2answers
176 views

One-liner capturing output for sudo kill

Background I have some root processes that I'm trying to kill, more precisely some tcpdump processes. Hence, I need to use sudo kill. My current command looks something like this: sudo kill $(ps ...
0
votes
1answer
2k views

Kill command on outlook invokes Microsoft error reporting Mac

I am actually trying to close some processes using kill command. All the processes are getting killed graciously but when I invoke kill command on Microsoft Outlook like kill PID it's getting ...
0
votes
1answer
3k views

Why running kill in linux needs sudo access

On one server(my development desktop), I am able to execute kill command without sudo, but on the other one, I will got kill: kill 1 failed: operation not permitted. I assume that kill command will ...
0
votes
0answers
628 views

Cannot kill Xorg process

On my Linux box, Xorg server got stuck and is consuming 100% CPU. It normally does not do that, but the machine has been suspended/resumed several times and the displays are not connected - I assume ...
3
votes
2answers
1k views

How to get killall on Cygwin

On Cygwin, I can access kill from bash, but when I try to execute killall, I get an error message saying “not available”. How do I get killall on Cygwin?
1
vote
0answers
106 views

Kill process at absolute time

I wish to run a command for the longest period possible and kill it at a certain absolute time (if it is still running), something like: killat "2018-06-09_23:55" ./myscript.bash The resources I've ...
0
votes
1answer
150 views

Process management in TempleOS: listing and killing processes?

TempleOS has different processes, according to docs/Glossary.DD.Z, There is no distinction between task, process or thread. The Fs segment reg is kept pointing to the current task's CTask. There ...
1
vote
0answers
302 views

“Ctrl + c” combination works different on different SSH clients

While I using MobaXTerm I can make a ssh connection to remote machine and I can use Ctrl+C combination to kill a process that works on remote machine. But while I use PuTTy I can make a ssh to remote ...
0
votes
2answers
11k views

On macOS how to close (kill) all terminal processes(windows)?

Using macOS sierra, i am searching for a command with which i can close/kill all opened terminal windows (processes). Also it should killing all processes opened by this terminals... Why pkill ...
0
votes
1answer
3k views

PuTTy SSH Session killed by signal 2

When I connect to a machine via ssh I can't use "Ctrl + C" combination because of it sends kill signal to session. As an example, I start a SSH session to client machine from main machine, I run "...
2
votes
1answer
147 views

Why chrome reacts after receiving kill-stop signal, and how to prevent that?

I am trying to save my laptop's battery by pausing/stopping completely chrome from doing stuff while minimized by manually sending it a kill-stop signal. When I did that, I pressed CTRL+T to test if ...
-1
votes
1answer
575 views

How to get rid of AVG Watchdog & AGVAmps services Win 7

First time poster here so please be kind! Been having a few problems with my mouse the last couple days & while investigating the problem I happened on these two services in my task manager... "...
1
vote
2answers
2k views

How to gracefully kill the transmission-daemon in a docker container?

I'm trying to dockerize a standalone transmission-daemon with https. So I'm using transmission-daemon and nginx packages, and the docker is based on alpine Linux. To run both programs, I'm using ...
1
vote
1answer
2k views

Cannot kill mongodb process

I am trying everything but every time I kill the mongod process it starts a new one in a different PID. I even uninstalled it, but still I have the same behavior. When I run this I get ps -ef | ...
2
votes
2answers
63 views

abort spawned program when it prints a specific warning

My Bash 4 script calls a third-party program P (one that I can't recompile), which prints warnings to STDOUT. When it prints yikes, it also enters an infinite loop. So when I detect a yikes, how can ...
3
votes
1answer
3k views

Kill specific instance of process on windows

I could not find help to this specific question, and I wonder if it has a solution. I have multiple instances of a program running on Windows 7. How can I kill a specific window (maybe based on the ...
2
votes
1answer
387 views

Killing listening process port X without knowledge about name

I would like to kill process that is listening on port 5000. I don't know how to do it because when I put: netstat -nlp | grep 5000 I got: udp6 0 0 :::5000 :::* - so I don't know name of process. ...
3
votes
2answers
4k views

killall chromium-browser: no process found

I had been able to do killall chromium-browser to stop all chromium browser sessions, but not anymore: $ killall chromium-browser chromium-browser: no process found That's been a while since my ...
2
votes
2answers
10k views

taskkill: The process not found

This happens from time to time: I run a simple taskkill command (as administrator) like this: taskkill /im sidebar.exe /f But get the following: ERROR: The process "sidebar.exe" not found. Also ...
0
votes
1answer
194 views

ssh into a machine and search for process, kill using xargs

I am doing this, guastest@iridium06.psc ~> ssh <machine> jps | gawk '$2 == "<process>" {print $1}' | xargs kill kill: sending signal to 75797 failed: No such process guastest@iridium06....

1
2 3 4 5 6