kill

How can I kill a process, using VBScript, started by a particular user.

I have multiple users running attachemate on a Windows 2003 server. I want to kill attachemate.exe started by user_1 without killing attachemate.exe started by user_2. I want to use VBScript. ...

Closing a minimized/iconized process from C#

Hi! Here's my issue: I need to close a process, already running, from a C# program. The problem is that the process now runs as an icon (minimized to taskbar), and unless the user opens it at least once (which will never happen on unattended machines), it'll never have a main window. The other requirement that I have is that the appli...

How do I kill a process using Vb.NET or C# ?

I have a scenario where I have to check whether user has already opened Microsoft Word. If he has, then I have to kill the winword.exe process and continue to execute my code. Does any one have any straight-forward code for killing a process using vb.net or c#? ...

What happens to an applet when browser is closed?

Hello, Let's suppose I have an applet running within a page in a browser. What happens when the browser is closed by the user? Is the applet notified so that it can perform some kind of close action on its side (closing connections opened to a server, cleaning static variables, ...)? Also, I assume the same behavior would apply for a ...

How to kill a linux process by STIME (dangling svnserve processes)

I'm new to Linux and have inherited keeping our single linux server running. It's our SVN server so it's relatively important. Turns out the guy who maintained it before me had a cron task to email him when there are too many svnserve processes running, as they seem to be left dangling instead of terminating correctly. First part of th...

How can I kill a whole process tree with Perl?

What's the best way to kill a process and all its child processes from a Perl script? It should run at least under Linux and Solaris, and not require installation of any additional packages. My guess would be to get a list of all processes and their parents by parsing files in /proc or by parsing the output of ps (neither of which seems...

Ensuring subprocesses are dead on exiting Python program

Is there a way to ensure all created subprocess are dead at exit time of a Python program? By subprocess I mean those created with subprocess.Popen(). If not, should I iterate over all of the issuing kills and then kills -9? anything cleaner? ...

Kill a process on a remote machine in C#

This only helps kills processes on the local machine. How do I kill processes on remote machines? ...

Killing a defunct process on UNIX system

I have a defunct process on my system: abc 22093 19508 0 23:29 pts/4 00:00:00 grep ProcA abc 31756 1 0 Dec08 ? 00:00:00 [ProcA_my_collect] <defunct> How can I kill the above process, without a reboot of the machine? I have tried with kill -9 31756 sudo kill -9 31756 ...

How do I kill an unruly spid in Sybase?

I've got a couple of rogue spid's in my database that I can see are sleeping when I log in as sa and use sp_who, but attempts to use kill <spid> to eliminate them have failed and I don't actually have access to the server itself to bounce it. Is there any other way of killing these things off? ...

Find PID of a Process by Name without Using popen() or system()

I've a process name and I've to send a kill() signal to that process but I need its PID to call kill(). I would only like to use: popen("pidof process_name"); as the last thing. Is there any other way to find out the process' PID? One way I could think of is to send a socket request to that process and ask to its PID. The other way i...

How can I kill all shells in Unix at once?

My Mac becomes slow over time. The reason is the huge amount of my shells, such as Bashes and Fishes. Each shell has different PID. Killing shells one by one is too cumbersome. How can I kill them at once? ...

What does "kill" do in JavaScript?

What does this JavaScript do exactly? parent.kill = 1; This is used in a project I'm working on to do some sort of session expiration but I've never seen it before. It's loaded in an iframe so I'm assuming that it is targeting the DOM document.window. ...

programmatically kill a process in vista/windows 7 in C#

Hi all, I want to kill a process programmatically in vista/windows 7 (I'm not sure if there's significant problems in the implementation of the UAC between the two to make a difference). Right now, my code looks like: if(killProcess){ System.Diagnostics.Process[] process = System.Diagnostics.Process.GetProcessesByName("MyPro...

kill a process started with popen

After opening a pipe to a process with popen, is there a way to kill the thread that is started? Using pclose is not what I want because that will wait for the thread to finish, but I need to kill it. ...

Performing equivalent of "Kill Process Tree" in c++ on windows

We have a c++ task that will fork a new process. That process in turn may have several child processes. If the task runs past an allotted time, we will want to kill that forked process. However, we don't want to orphan the processes it has spawned. We want them all to die. I have used Process Explorer and it has a "Kill Process Tree...

Killing a "Critical Process" In Windows (C/C++)

What is the best way to kill a critical process? ...

Managing a COM object in C#

I have an ATL COM exe that I am calling from C#. I import the reference into C# and everything works just fine, the exe is spawned, and I can call functions on it. Now, I instantiate several of these COM objects. Occasionally one of them will hang. Releasing the COM object does nothing, since its still running. I can't kill the process, ...

How is it possible that kill -9 for a process on Linux has no effect?

I'm writing a plugin to highlight text strings automatically as you visit a web site. It's like the highlight search results but automatic and for many words; it could be used for people with allergies to make words really stand out, for example, when they browse a food site. But I have problem. When I try to close an empty, fresh FF wi...

How do I schedule a process' termination?

I need to run a process, wait a few hours, kill it, and start it again. Is there an easy way that I can accomplish this with Python or Bash? I can run it in the background but how do I identify it to use kill on it? ...