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
1 answer

Error in shell script : Process cannot be killed

Following is my script, for which I am getting an error when I try to kill a process. The error states the process does not exist: select case when max(LAST_MODIFIED_DATE) > to_date('$TO_EXTRACT_VALUE', 'YYYY-MM-DD HH24:MI:SS') then 0 else 1 …
user1496783
  • 29
  • 2
  • 9
0
votes
1 answer

Ajax call in local site to PHP file to kill task

I am hoping someone can explain how to do this to a laymen like me. I found a work around posted by someone else for a project I'm working on. However, I'm not sure how I do this. Here is the workaround posted by someone else: I found a way to get…
Wes
  • 3
  • 1
  • 3
0
votes
1 answer

boost::asio async_accept kill ioservice

can you help me with little problem? I have 2 class: Form1 async_srv When i start application, Form1 create async_srv instance. And listening my socket, all recieved data sending to main class and return answer from her. When get -1, i want destoy…
r1se
  • 67
  • 1
  • 1
  • 6
0
votes
1 answer

How to kill system uninstaller activity

I'm trying to stop "com.android.uninstaller.UnistallerActivity" when appeared i use following code: public static void killThisPackageIfRunning(final Context context, String packageName){ ActivityManager activityManager =…
Smile2Life
  • 1,921
  • 3
  • 16
  • 30
0
votes
0 answers

Kill background process from native code

My goal is to kill a (background) process from a native function called from the java code in my application. What I've got so far is a native function with this code: popen("am kill com.example.application", "r"); it doesn't do anything, and if I…
0
votes
1 answer

How to keep track of the process started in python and killing it when necessary?

I have started a command line program in linux using python with the following command os.system() I want to keep track of the program and kill it while necessary within the same python program. Would be cool if somebody could tell the safest way…
Shan
  • 18,563
  • 39
  • 97
  • 132
0
votes
1 answer

Perl: Module to handle nohup, and process handling in general

I have a program with lots of system commands to handle searching for, examining, and killing processes: system qq(kill $pid); and for my $pid ( qx( pgrep -f "$pgrep_re") ) { chomp $pid; ... } and my $command_line = qx(ps -o command=""…
David W.
  • 105,218
  • 39
  • 216
  • 337
0
votes
2 answers

killing all non-responding applications with autoit

How can I automatically close not responding applications with autoit under windows? These type of applications usually get a title of the form "XXXX (Not Responding)". I tried the following code but without any success: ; Wait 10 seconds for the a…
arthur
  • 1,034
  • 2
  • 17
  • 31
0
votes
0 answers

How to kill a process on a remote server using python paramiko

I have python script that connects to a remote server with lenny operating system. It runs a process in background using following line: shell.send("cd /my/directory/; nohup ./exec_name > /dev/null 2>&1 &\n") Then after some other codes, it sends a…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
0
votes
1 answer

Android 4.4 Kitkat: Is there a way to run a service without android kill it after some time?

I need a service that runs always in background without Android kills it after some time. Before Android 4.4 Kitkat I used AlarmManager to do this, but now Android kills my services after some hours. Is there a way to have services running in…
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
0
votes
2 answers

Android KitKat 4.4 kills my Service stared by Alarm Manager

I have a big problem with Android KitKat and Alarm Manager. All my apps work with a service that always run in background without Android kill it. Before Android 4.4 KitKat the solution I found was to start the service through a BroadcastReceiver…
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
0
votes
3 answers

Batch file process killed in Java: xcopy does not close

This seems like it should be fairly easy to solve, but I am not familiar enough with the use of batch files to solve it for myself. I have a Java method that creates a process builder and runs a batch file in the process. The batch file uses the…
DerStrom8
  • 1,311
  • 2
  • 23
  • 45
0
votes
0 answers

propgress bar in notificationbar when app closed from background

I am updating progress in notificaton bar in my application when the app is closed or the task is interupted i want to show the message some thing went wrong How to do that? (my progressbar is updating when the app is in foreground (not killed).)
SHASHIDHAR MANCHUKONDA
  • 3,302
  • 2
  • 19
  • 40
0
votes
0 answers

Killing the process running on server

I wrote a program. It kills the process notepad.exe running on computer by and it looks like that: ` Process process = new Process(); process.StartInfo.FileName = "cmd.exe"; process.StartInfo.UseShellExecute =…
Mateusz
  • 11
  • 4
0
votes
3 answers

close .exe file using wpf application and button click

i want to close an executable file (.EXE) runing on my PC programatically using WPF, I have succed to start this .EXE file by : if (_MyPath != "") { Process StartApp = new Process(); string str = @_MyPath; StartApp.StartInfo.FileName =…
user2933082
  • 263
  • 3
  • 10