Kill is an operation of removing an object or process from memory so that other processes/variables can use them.
Questions tagged [kill]
1603 questions
0
votes
1 answer
Android: Not end (finish) the last task in stack
I would like to know if there is a way to prevent the last task in the Android Task Stack from being finish(); if the user clicks the back button. I do like that the user is sent back to the Home Screen but I would like the last activity to remain…

JC Castano
- 135
- 1
- 6
0
votes
0 answers
Killing a process in windows with a php call
I want to kill a process using php with exec function in windows. Usually what I do is TASKKILL /S system /F /IM program.exe
But when I execute this thorough php, it always shows access denied. But I can execute the same with cmd (run as admin). Is…

Jeff
- 394
- 3
- 13
0
votes
1 answer
Automatically Kill Apache Process if it Use 100%
I am using CentOS 5 + Webmin and Apache server. Sometimes it happen that some Apache process leave open connection and it use 100%. That can increase load average for +1. If sometimes happen more then one, there is a problem with load average, it's…

EmptySD
- 131
- 1
- 7
0
votes
2 answers
How to immediately kill a thread which is waiting for network operations?
So, I'm creating a download manager, and I've designed every bit specifically so that it can be shut down at any second without giving it the time to clean up. However, I can't seem to find a way to kill my downloader threads. I tried using…

Arshia001
- 1,854
- 14
- 19
0
votes
2 answers
Close text file if it is open in default application (vb.net)
I need to open text files programatically using vb.net after overwriting the existing file. However, if the file is already open, the old version of the file is still displayed
How can I close a .txt file if it is currently opened in the default…

Bernoulli Lizard
- 537
- 1
- 12
- 23
0
votes
4 answers
Killing linux process by piping the id
I want to kill a process and I get its id with:
pgrep -f "python myscript.py"
I would like to call
kill -s SIGINT
on it, but I can't find any way to do it.
(the command needs to be in one line)

Ambi
- 513
- 1
- 6
- 18
0
votes
0 answers
Killing a JFrame/Java when process finishes
I've been trying to find an answer to this question for quite a while, and found many similar questions here on SO, but none of them seem to solve the issue.
So some background: I have a program that uses a JFrame. There is a button in the frame,…

DerStrom8
- 1,311
- 2
- 23
- 45
0
votes
1 answer
How to store process IDs and kill them?
I'm having trouble with dealing with background processes in my shell. I'm storing the pids in an array and then when I call 'jobs', it's supposed to iterate through the array and if the number is not 0 and if it is still alive, it prints, if not,…

bjamin
- 131
- 1
- 5
0
votes
1 answer
How to kill linux process by Ant command using Pid
I know pid of a linux process.
I want to kill that process using ANT script.
What ANT target/command should I use ?
In windows I do it this way
What is linux equivalent of this ?

Kaushik Lele
- 6,439
- 13
- 50
- 76
0
votes
1 answer
Centos Java Application Killed Automatically
On my centos node, after starting the application in terminal with a command (sh run.sh), a few things are loaded and printed out to, and then I receive this line of text:
run.sh: line 1: 32366 Killed java -Xmx1024m -Xss2m…

Tyluur
- 91
- 1
- 2
- 9
0
votes
1 answer
[GTK+-3.0]how to kill pid opened by g_spawn_async_with_pipes
I am testing create&kill a process by *g_spawn_async_with_pipes()* in windows
Here is my code:
# argv is: ping xxx -t
GSpawnFlags flags = (GSpawnFlags)(G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH);
GError *error = NULL;
GPid pid;
gint…

Jacob
- 41
- 4
0
votes
0 answers
Using Python and os.kill on chrome?
So I'm having some trouble figuring out the syntax of the os.kill() function in Python. I need it to kill chrome when there are too many tabs open, say ten or a hundred. I've looked all already but even the documentation doesn't seem to make…

knefcy
- 11
- 4
0
votes
1 answer
How to search a text file for a specific line and then kill a process when finding it with bash?
I have very little experience with scripting, but I'd like to get into it.
Basically, this is for a StarMade server, as its java process doesn't shut down on a crash but rather remains running, so it becomes hard to properly detect crashes, and…

Archer
- 3
- 1
- 3
0
votes
5 answers
How can I kill child process using taskkill in a batch script?
I'm capturing the PID in a variable which I kill later
IF NOT "%SERVICE_PID%" == 0 taskkill /pid %SERVICE_PID% /t /f
though everytime I do this in a batch file it makes my computer restart because it kills some system process
the service pid…

qodeninja
- 10,946
- 30
- 98
- 152
0
votes
1 answer
How to cleanly kill Ubuntu onboard keyboard with keystroke from the onboard keyboard
I am trying to close the Ubuntu onscreen keyboard named onboard with a command entered by that keyboard. What happens is if I type a kill command such as the following using the onscreen keyboard itself. . .
killall onboard
and then hit Enter…

Brian
- 3,264
- 4
- 30
- 43