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

After killing a pid in shell script, it remains there in the same script?

I'm trying to kill a process, then verify if it's killed successfully. However I found that although it's killed, in the same script it still shows it's not killed. My script is like the following (running in a remote server by ssh first, that's why…
Matt Zhang
  • 11
  • 3
0
votes
0 answers

Close VB.NET app when main VB6 form is closed

I have 2 VB6 application which may launch the same VB.NET application (same exe) via a subMenu. The VB6 code to start this application is a Shell command : ret = Shell(exe, 1) My problem is when the user exit the main application (VB6), it won't…
nbadaud
  • 694
  • 7
  • 26
0
votes
2 answers

Kill command erroring out

We have a script that fetches all the active processes and kills it . But for some reason i am getting the below error : :: INFO :: /AA/AAA/AAA/AAA/AAA/AAA/AAA/AAA\ Servers.sh :: 2016-06-26:04:00:04 : FORCE KILLING REMAINING SERVER …
0
votes
0 answers

Bash zombie process script in linux

I want to write a script to detect and kill zombie processes. The implementation would be to kill the child and parent process. The script should run hourly under a specific user and when a zombie is detected a log message is generated and sent to a…
0
votes
2 answers

Shell Script itself killing own running script process id

I am using below command to get the pid . "A" is application name and used as parameter. I run my script like ./stop A PID=`ps -ef | grep A| grep -v grep | awk '{print$2}'` This is capturing " /bin/ksh ./stop A " process as well .But that I do not…
RonyA
  • 585
  • 3
  • 11
  • 26
0
votes
2 answers

PHP Mink/Zombie - handling hanging processes after a fatal exception?

I'm using the PHP script with Mink+Zombie driver (install as on nodejs cannot find module 'zombie' with PHP mink) from here: PHP Mink/Zombie - page visit returns status code 0? ; re-posting for completeness:
sdbbs
  • 4,270
  • 5
  • 32
  • 87
0
votes
1 answer

Doubts with command: pkill -INT -f '^php test_program.php$'

QUESTION: What does each element of the command: pkill -INT -f '^php test_program.php$' do when I run it in the linux terminal? I already know that the command kills the process called test_program.php, but I don't know what all the different…
Webeng
  • 7,050
  • 4
  • 31
  • 59
0
votes
1 answer

Windows - Script to end a process like the task manager does

I have an issue with a program which sometimes doesn't quit correctly. I still working to fix it but I need a workaround to be able to kill the process for now. Problem is that I can't kill it with the command like : taskkill /PID /T /F I…
Dinendal
  • 269
  • 1
  • 5
  • 19
0
votes
1 answer

Delete running executable

I have almost the same problem I have two files a.exe in folder c:\one and a.exe in c:\two, both are running, but I want to delete the file only in the first folder (If not this condition, I could use foreach (var process in…
Vadim Volodin
  • 377
  • 1
  • 2
  • 14
0
votes
1 answer

How can i kill all processes in clients that run a program(by shortcut) at server

I have a program on a server(for example \\192.168.0.1\sharefolder\test.exe). I put the shortcut of program into clients. Users can run the program by that shortcut. When I want to update my program in server, it occurs an error says "file in use"..…
Mahyar
  • 3
  • 3
0
votes
0 answers

Error when trying to use kill in script

I'm trying to launch and kill a background process in a script, but it gives me this error: $ bash ./test.sh 7826 : arguments must be process or job IDs My script code is: #!/bin/bash ./program & p_pid=$! echo $p_pid kill $p_pid Debuging: +…
Qunts
  • 41
  • 1
  • 4
0
votes
1 answer

C# Why can I not programmatically kill a console program started in Task Scheduler?

I have a console program to run a daily batch. I have a UI that I can use to alter parameters in a db that the console program uses. I thought it would be great to be able to stop and start this program from the UI and I can do that. However, I…
Dave Tapson
  • 810
  • 1
  • 9
  • 22
0
votes
2 answers

Delete an unfinished file

I was writing a huge file output.txt (around 10GB) on a server thorugh a python script using the f.write(row) command but because the process was too long I decided to interrupt the program using kill -9 pid The problem is that this space is still…
Alexis K.
  • 101
  • 2
0
votes
1 answer

Python: Send Signal to Process via PID File

A similar question is already asked here, but my question is very specific: I don't have a PID, but a PID file. Is there a cleaner way of doing this other than reading the file myself? Preferably without an extra module to install. To avoid an XY…
OmarOthman
  • 1,718
  • 2
  • 19
  • 36
0
votes
1 answer

c++ application on linux, on hook before kill

I encounter multiple times where Linux Out of Memory Killer watchdog on Linux is killing my application, this is hard to debug and identify... Is there anyway in a c/c++ application running under Linux to print a message before the application is…
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159