Questions tagged [kill]

Kill is an operation of removing an object or process from memory so that other processes/variables can use them.

1603 questions
0
votes
1 answer

Save state when system closes application on low memory

is it possible to intercept the event of system closing my application on low memory? I know there is a method "onLowMemory" but it doesn't mean that my application will be closed after it is invoked. My problem is that I'm co-developing an app that…
kajman
  • 1,066
  • 11
  • 24
0
votes
0 answers

How kill a specific process

I have a process that interacts with an Excel application in background, but sometimes the process has an error and the Excel Application doesn't finish correctly. Always, when this process starts try to delete the Excel file from the hard…
MiBol
  • 1,985
  • 10
  • 37
  • 64
0
votes
0 answers

Killing a thread running an audio file in a service

In Android, I am running a service that spawns a thread. The thread plays a wave audio file. Once the completion of the audio file, I want to kill (destroy) the service. So I wrote the following snippet for that Thread tr = new Thread()…
yasserbn
  • 391
  • 3
  • 18
0
votes
2 answers

Removal after some Iterations: yes | rm -r .git

I need to kill the "yes" command after some iterations, two methods: a) kill it b) give "n" as an input after some time How would you automate the removal of .git directory?
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
0
votes
1 answer

Groovy Postbuild Script Jenkins - Kill Process

I'm trying to kill all ruby processes before starting a new one in a Groovy postbuild script in Jenkins. It looks like that: def command_kill = "kill -9 `pidof ruby`" def proc_kill = command_kill.execute() proc_kill.waitFor() which results…
Michael Kohler
  • 753
  • 10
  • 22
0
votes
1 answer

How to get the path of a running process if its pid of name is known in java on a windows system?

I am writing a program to kill and start processes in another computer connected via lan. I am able to kill the process successfully. I used tasklist to list the process and taskkill for killing it. To start the killed program again the path of the…
0
votes
1 answer

'Kill'ing an app, from a sandboxed app?

OK, it's as simple as it sounds : I've got a fully-working app I'm trying to 'sandbox' it, as per App Store's current guidelines. The thing is : The app is executing in the background (as an NSTask), the /bin/kill command, and when I'm trying to…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

Terminate python application waiting on semaphore

I would like to know why doesn't python2.7 drop blocking operations when ctrl+c is pressed, I am unable to kill my threaded application, there are several socket waits, semaphore waits and so on. In python3 ctrl+c dropped every blocking operation…
sDoky
  • 338
  • 3
  • 14
0
votes
1 answer

batch file kill multiple programs on text file

I am looking for a batch file to kill all programs listed on a text file this would be very useful also i am looking for a batch file to link an exe or bat to a keyboard shortcut Example would be when you click ctrl 5 to launch ie but the bat must…
kriegy
  • 195
  • 1
  • 3
  • 14
0
votes
0 answers

How to determine what kills my Java server in Ubuntu?

I have a Java server running on an Ubuntu machine and every few days it just... dies. Every exit point on every thread leaves a log entry and everything is wrapped in try-catch with a log entry in the catch, but on these mysterious shutdowns,…
Kristaps Baumanis
  • 563
  • 1
  • 7
  • 18
0
votes
1 answer

CherryPy kill process if not pinged in time

Is there a way to have CherryPy (running on :8080, it's only function being a listener for SIGUSR1) kill a process if it hasn't been pinged in a certain number of seconds? Certainly the Python code for process killing is not in question, simply the…
MasonWinsauer
  • 673
  • 3
  • 14
  • 32
0
votes
4 answers

killing a thread from the calling function c#

I have button call this code private void but_Click(object sender, EventArgs e) { Thread My_Thread = new Thread(() => Send_File()); My_Thread.IsBackground = true; My_Thread.Start(); } I want a way to kill My_Thread from the function…
motaz99
  • 471
  • 3
  • 8
  • 15
0
votes
6 answers

How to implement a kill switch in a native windows program

We've got issues with our program potentially hanging in certain situations, is there a way to search and destroy your own program with windows calls without using task manager. It probably wouldn't make sense to include this in the program itself,…
Peter Turner
  • 11,199
  • 10
  • 68
  • 109
0
votes
1 answer

nsIProcess kill

I'm launching an executable from a firefox extension successfully. When I attempt to kill that same process it doesn't work. What am I doing wrong? var process; var loadingMonitor = { launchExternalApp : function (jnlp) { process =…
ricardoespsanto
  • 1,000
  • 10
  • 34
0
votes
4 answers

C# Terminate a Class Library which implements a DispatcherTimer

I am using a class library to simulate and process data and return results via triggered events. DataProcessor _dataProcessor In it I am using a DispatcherTimer to simulate data and raise events when simulated data is available and ready to be…
faldeland
  • 587
  • 6
  • 20
1 2 3
99
100