Questions tagged [kill-process]

This tag refers to the action of terminating (aborting) a process.

Use this tag for questions related to killing a specific process on a system.

701 questions
0
votes
0 answers

App killed event in BroadcastReceiver

In a service, I need to do something when a certain running app is being killed using command killall com.test.test. I am already listening to events for when the app is being uninstalled, but I cannot find such event for killed processes. Does it…
Guillaume
  • 2,912
  • 3
  • 35
  • 59
0
votes
1 answer

Kill java process from terminal automatically

Is it possible to kill a java program's execution from terminal automatically after specific amount of time (when running not compiling). For example, I like to stop the following after 10 seconds: java examples.Example
razm
  • 25
  • 1
  • 7
0
votes
0 answers

Android Execute code before OS kills my app

When I press Home button my app goes in background (i.e onPause() and onStop() methods called). Now If I keep app in background for longer time with my phone in idle state then OS kills the app after some time. Now what I want to do is execute…
Tushar H
  • 755
  • 11
  • 29
0
votes
1 answer

Find and delete resource files using batch file

I have never written a batch file so please bear with me. I want to find resource file from current working directory of batch file. If it exist then I have stop aspnet_wp.exe process (if running) and delete this resource file. Later run resgen…
jet
  • 23
  • 4
0
votes
0 answers

Response signal of killing a process in linux with 'kill' command

Is there a way to get a callback/signal after killing a linux process with kill/pkill command?
Shailesh
  • 367
  • 1
  • 5
  • 15
0
votes
1 answer

How to kill script.py in Python on Windows?

Is it possible in Python to close a script using just the filename of the script? I have two scripts which don't work at the same time so on startup I want one of the scripts to end the other script. Is this possible? If so, please let me know…
Mitra0000
  • 172
  • 1
  • 1
  • 10
0
votes
1 answer

Killing parent process only, not both child and parent in bash

I'm trying to kill process by name. It's supposed to kill children processes first then the parent later but I only get parent killed. Help needed please. EDIT: SOLVED
A. Koo
  • 5
  • 2
0
votes
0 answers

Kill application running on server (from client side)

I'm using VB.NET to develop a web app that can execute some .exe files (created by me) that will run on the server and continue running until the end of the operation. Occasionally, the exe file becomes "stuck" and I can't do anything but kill it…
0
votes
1 answer

I'm creating a kill process using PID

But the issue is the PID that I print before sending to through the method and the PID that I print after receiving it in the method are totally different.I can't figure this out. void killbyPIDprocess(struct process** ptr,char* p) { int i=0; …
Sobiaa
  • 3
  • 2
0
votes
1 answer

Is there an Android Intent that indicates killing my background services (or main process)?

Is there an Android Intent that indicates my background services (or main process) were killed? For example, due to low system memory etc. I would like to have them restarted if they are killed.
KJAN
  • 227
  • 4
  • 15
0
votes
1 answer

Elegant way of killing a Linux program

I am running a Linux program that uses a lot of memory. If I terminate it manually using Ctrl-C, it will do the necessary memory clean-up. Now I'm trying to terminate the program using a script. What is an elegant way to do so? I'm hoping to do…
Rayne
  • 14,247
  • 16
  • 42
  • 59
0
votes
1 answer

How to kill mysql started with "mysql_safe" script?

Short version: I started mysql with mysql_safe and I can't kill it. Long version: Installing an older version of mysql with macport displayed this suggestion: $ sudo port install mysql55-server ---> Computing dependencies for mysql55-server ---> …
doub1ejack
  • 10,627
  • 20
  • 66
  • 125
0
votes
2 answers

How to destroy and recreate objects in Android during runtime?

I'm developing an Android app that has to simulate a sort of Pokédex. For now, what I want to do is simply have all 151 Pokémon printed on my device, so I can scroll them up and down. The problem is that when I try this thing with such as 9 or 12…
Ale TheFe
  • 1,540
  • 15
  • 43
0
votes
0 answers

Kill signal not delivered from one application to another

Hey I'm working on an application . In which i am killing other application from my application. But it does not work. I am searching a lot and found many solution , But no one is working for me. here is my code. ActivityManager am =…
Sohaib Raza
  • 41
  • 2
  • 10
0
votes
2 answers

How to kill a SQL Server session or session ID

I'm trying to kill a session in SQL Server 2012 from C# windows Form using kill but what happens is that when I do that, an error appears: Cannot use KILL to kill your own process Code: // to do DB backup private void spid2_Click(object…
T.Hajjar
  • 77
  • 1
  • 5