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

Prevent renaming of window caption and kill process by name (if exist) in C++

I want to prevent my application's window caption to be renamed from 3rd party programs. It uses SDL to create the window and set the name. SDL_WM_SetCaption("Name", "Name"); SDL_WM_SetIcon(IMG_Load("example.gif"),…
Darth Moon
  • 41
  • 2
0
votes
2 answers

when kill my process,it goes in the system

assume that currently i am on home page.now i click on back button display alert dialog for asking exit or not.on yes button my process is killed but its not happened. i redirect to last open activity. Homepage.java public class HomePage extends…
Varshil shah
  • 268
  • 1
  • 6
  • 19
0
votes
2 answers

How to kill GenyMotion emulator from command line

I'm trying to close / kill Genymotion emulator within terminal , the thing is that kill player is not enough , the vm is still running , I need something that also can kill the vBox's vm instance.
Igal
  • 4,603
  • 14
  • 41
  • 66
0
votes
1 answer

Android app crashing every second time in lollipop only

I'm new to Android studio and i'm developing one location based app. Here, I need to close the app at some instance,so I called the finish(); function and killed the process in onDestroy() Problem: Everything works fine in android 4.4(Kitkat) but…
Surya
  • 47
  • 8
0
votes
0 answers

Kill running process

I have the below code which runs a couple of command line applications. If I then try to kill the process, sometimes it works, sometimes it doesn't and the process continues to run. I just wanted to check if what I am doing is the correct, preferred…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
0
votes
2 answers

Loop calls process that takes a long time to complete. How do I break out of it?

I got to this solution yesterday with help from here (it's finding a list of directories to process with HandBrakeCLI, and putting the results in a hard-coded directory): #!/bin/bash source_dir=/Volumes/VolumeName dest_dir=/Volumes/OtherName export…
Lorccan
  • 793
  • 5
  • 20
0
votes
1 answer

How to kill(if process exist) & restart a process in a single command line

I am in situation where i want to kill a process if exist & restart the same. How to do it? currently i am doing this killall -9 inetd && /bin/inetd If inetd is not running i get this killall: /bin/inetd: no process killed Even though inetd is not…
prashanth cm
  • 49
  • 1
  • 1
  • 4
0
votes
1 answer

Is there a way for the client application to kill a running request without destroying the service and losing its associated context?

I use a bound service to run cpu-intensive tasks in the background as recommended to avoid ANR. The client application sends messages to the bound service that handles them in the handleMessage() method of its Handler. As some requests can take very…
ema3272
  • 1,021
  • 2
  • 13
  • 28
0
votes
2 answers

Lanch and kill script monitor via ssh

I have a bash script that monitor some system statistic. I need to run the script on several machine, all at the same time. I would like to launch the script on all the machine and when the operation I want to monitor is over I need to stop the…
Siscia
  • 1,421
  • 1
  • 12
  • 29
0
votes
1 answer

kill a process and its sub-processes in a python script

in my script i am getting a process id(parent/main) for that main process id 3-4 several sub processes are running in linux terminal My requirement is from that processid killing all sub process and sub processes also. i have tried import os pid…
Satya
  • 5,470
  • 17
  • 47
  • 72
0
votes
1 answer

Can not move file in application and kill proces

i use winrar to extract a rar file in my application. after that extract is compete i need to move the extracted file but it some times it has this error: The process cannot access the file because it is being used by another process i guess that…
aira
  • 3
  • 3
0
votes
1 answer

How to terminate an ssh session that is connected to my computer

My friend turned on remote login and I disabled it, but since he was already logged in, it didn't terminate the session(I knew he did it and we we're having a race). He created a user account and I deleted the user account which terminated the…
TemporaryFix
  • 2,008
  • 3
  • 30
  • 54
0
votes
1 answer

Running commands remotely returns unexpected output

I want to kill a process remotely and I use ssh -i command like this: ssh -i $app_rsa_file_path $app_server_user@$app_server_ip "ps aux | grep java | grep billing | awk '{print $2}' | xargs kill -9 > /dev/null 2>&1" if I run command directly on the…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
0
votes
1 answer

kill process and its sub/co-processes by getting their parent pid by python script

i am using MULTIPROCESSING to find my requirement. And when that runs i am getting a pid(may be parent! i don't know what to call that) then co processes with their own pid and reference id of first process. Now i need to kill all those processes BY…
Satya
  • 5,470
  • 17
  • 47
  • 72
0
votes
0 answers

crontab doesn't run jar file

I made a simple program that kill a process when cpu usage is high. public class Main { public static void main(String[] args){ try { if(SystemStatusReader.getCpu() < 50) { String startApp = "./standalone.sh…
Jebus
  • 75
  • 1
  • 3
  • 12