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

Alternate for KILL command in linux

I have written a script file for stopping of process. But there is need to write script file without using kill cmd. Is there any alternate cmd for kill cmd in Linux?
hAcky
  • 37
  • 1
  • 10
0
votes
1 answer

How to stop Autosave after 30 mins or so?

I am working on autosaving a form using jQuery. This form will keep saving data every 1 min. However, I don't want to spam the database if the user has that browser open for one day. So I want to kill the autosave option if there is no change or if…
LOCKLOCK
  • 341
  • 1
  • 3
  • 13
0
votes
3 answers

Run piece of code atomic or after application kill (Ctrl+C)

In my program I approaching text files in every iteration of loop to not lost any data from running. It is brutal uneffective and still I lost that data yesterday. I have 2 Queues - "what have I done" and "what to do". After some time I need to end…
Gondil
  • 787
  • 3
  • 9
  • 28
0
votes
1 answer

Combine all the kill bash command in one line

I am using the following command to kill my servers at the moment and want to combine them into one. 1- ps aux | grep 'python manage.py runserver' sudo kill -9 $PID 2- ps aux | grep 'python -m SimpleHTTPServer' sudo kill -9 $PID 3- ps aux |…
python
  • 4,403
  • 13
  • 56
  • 103
0
votes
1 answer

Python: kill process and close window it opened in (windows)

I'm working on a tool for data entry at my job where it basically takes a report ID number, opens a PDF to that page of that report, allows you to input the information and then saves it. I'm completely new to instantiating new processes in python;…
carusot42
  • 1,171
  • 10
  • 17
0
votes
0 answers

Write to process' standard input after getting it by ID

I need to run a process during an MSBuild task, and close that process gracefully after doing some other operations. I cannot use kill as it just brutally terminates the process and it leaves some things in a bad state. The process in question is…
MarioDS
  • 12,895
  • 15
  • 65
  • 121
0
votes
0 answers

Batch File Help, Want to disable process and rename file not working

I've been trying to make a batch file to disable or enable cortana in windows 10. I do 1, the cortana process is only suspended, not closed and as a consequence it doesn't rename the file. What have I done wrong? I have asked for admin permissions,…
Decallion
  • 1
  • 1
0
votes
0 answers

Handling kill events for python multiprocessing processes

For a program that should run both on Linux and Windows (python 2.7), I'm trying to update values of a given object using multiprocessing.Process (while the main program is running, I'm calling the update class by a separate process). Sometimes it…
LievenB
  • 13
  • 4
0
votes
1 answer

Kill or terminate running process

I'm using external exe file in my C# code. please check below code. This code I just find some web site. string str = @"C:\joseph_Test\external_vendor.exe"; Process myprocess = new Process(); myprocess.StartInfo.FileName =…
Choi Joseph
  • 197
  • 1
  • 2
  • 12
0
votes
1 answer

Can't kill a process with name with spaces

I got this in my Main Class(the program is a patcher exe..): private void Form1_Load(object sender, EventArgs e) { // in the exe.dat is written this(the name of the running exe file): KF2 DSM.exe string FileName =…
Tom Lenc
  • 765
  • 1
  • 17
  • 41
0
votes
1 answer

exercise about C dynamic memory allocation

I am trying to do an exercise about malloc and memory usage. The text of the exercise is: Memory disaster. Reserve some memory, for example 100 kbyte at a time, in a function. Count the number of calls. This number is always the same? I wrote this…
linofex
  • 340
  • 1
  • 2
  • 17
0
votes
0 answers

Detect not responding/answering Windows processes from PHP and kill it

I want to run a php check for some specific running processes (I know their exe name, they are my little C++ programs and there can be more of them), detect which are not answering/responding and kill them. (PHP5.4+, Windows) What I already…
jave.web
  • 13,880
  • 12
  • 91
  • 125
0
votes
0 answers

batch script to kill process if still running after a certain time

I need to create a batch script that launches a program, and waits for up to 1 minute for the program to finish, and then do something else. The exact steps are: Launch program A Wait for program A to finish OR kill it if not finished within 1…
badhaircut
  • 355
  • 4
  • 8
0
votes
2 answers

C# - Kill process doesn't work properly

I developing some parts of WPF application. I'm creating multiple user control for it. So, one of my user control, i open IExplore.exe with a url. After close that user control, i close that process. On my system seems working properly, but client's…
orhun.begendi
  • 937
  • 3
  • 16
  • 31
0
votes
0 answers

Getting an Android app to start and stop a third party app

I have an Android app which uses an activity to start another app (a third party app). After certain events have taken place, I want the activity to stop/hide/kill the third party app. Starting the third party app is easy, but I cannot find a way to…