The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
3answers
2k views

When will kill PID fail?

I'm trying to kill 31216 31617,but after 10 times,that process still survives. Why? Is there a way to force it dead? root 31216 1 0 10:49 ? 00:00:00 nginx: master process ...
0
votes
1answer
6k views

how to kill a zombie process?

I got a two processes during the network drive failure. 1 D 0 1199 1 0 80 0 - 19101 wait_o pts/21 00:00:01 rsync 1 Z 0 1226 1199 0 80 0 - 0 exit pts/21 00:00:00 rsync ...
2
votes
1answer
3k views

VPS yum update filesystem … killed

I've got a HostGator level 1 VPS - basically, a CentOS 5. I've got full root access to run whatever I want. Anyhow, during a recent maintenance check, I run yum -y update, but after the usual kinds ...
1
vote
1answer
139 views

What can be used to prevent the termination/killing of a process, even by the root user?

Is there a security framework or general tool that can be used to ensure that a certain process started at boot in Linux cannot be terminated by any user or other process, including the root user?
0
votes
2answers
2k views

Process that sent SIGKILL

I have a series of scripts that are being killed ($? says exit code is 137, which implies a kill -9 scenario). I need to know what process killed them. Is there a way to find out this information?
1
vote
2answers
3k views

With Powershell, how can I get the id of a process owned by a specific user?

Using Powershell, I want to do the equivalent of Unix ps -auxc | grep Emacs kill -9 364 (Assuming 365 was the pid the first command told me.) How do I do that? I find it incredibly hard to get ...
4
votes
7answers
2k views

I have a perl script that is supposed to run indefinitely. It's being killed… how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to ...
0
votes
2answers
804 views

Phantom process killing

I have a java application running on a CentOS 5.4 server. Randomly, and seemingly without cause, these processes will die, not through the application exiting, or due to my killing it, but due to ...
3
votes
1answer
10k views

How to break from infinite loop, caused by PHP script running as root?

I have PHP script running right now with root permissions that starts from the following lines: set_time_limit(0); ini_set('log_errors', 1); ini_set('error_log', "log.txt"); It was accidentally ...
0
votes
3answers
2k views

how to kill a process running on remote windows machine from linux?

I am looking for something like SysInternals pskill which is just great! But that can be executed on Linux more exactly I want it to run on Maemo (Nokia N900 phone). Please do not offer me to run a ...
0
votes
1answer
284 views

deleted files lvm+ext4

I did a stupidity. Using find command I deleted near 500GB of files. is there a REAL way to recover it?
0
votes
2answers
447 views

Partprobe can't be killed

I'm trying to configure a software RAID 10 on my CentOS server. During my test, I disabled a device to check that my filesystem was still working. When I executed partprobe, the server wasn't ...
0
votes
4answers
5k views

How do I recover from a hung machine with an 'nfs server *** not responding' error?

nfs server *** not responding nfs server *** not responding nfs server *** not responding nfs server *** not responding nfs server *** not responding nfs server *** not responding I am getting this ...
0
votes
1answer
1k views

Cannot kill process in Linux: httpd -k start

I cannot kill the following process: 0.0 1620 17462 /home/mertnuhoglu/webapps/django/apache2/bin/httpd -k start I give kill command but httpd instance still runs: [mertnuhoglu@web145 dj02]$ kill ...
1
vote
1answer
296 views

What happens when you kill a process that has database tables locked?

Trying to kill a process that running a MySQL database backup, and has the tables locked. What will happen if I kill the process?
3
votes
4answers
204 views

I want to find something and kill it

I keep running these two commands over and over: $ ps aux | grep php | grep -v grep www-data 3663 100 14.8 328620 304900 ? R 12:56 0:54 php /home/jason/projects/mcif/./symfony ...
1
vote
1answer
540 views

kill all process spawned by parent process with ssh -x -n on other node

Hi A software named G09 works in parallel using Linda. It spawns its parallel childs on other node as /usr/bin/ssh -x compute-0-127.local -n /usr/local/g09l/g09/linda-exe/l1002.exel ...other_opts... ...
0
votes
3answers
2k views

pptp vpn - Kill User Connection

I'd like to be able to terminate a user's connection to my pptp server from the server itself without interrupting anyone else's connection. Problem is - I have no idea how and have found no useful ...
3
votes
12answers
14k views

How do I kill processes older than “t”?

First, yes I have seen this question: http://serverfault.com/q/71360/14428 The answers there are incorrect and do not work. I have voted and commented accordingly. The processes I want to kill look ...
1
vote
1answer
2k views

Force KILL State -D Process/PID in Linux

Can anyone show me how to Force KILL State -D Process/PID in Linux? I am looking everywhere and no answer found yet. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 13585 ggreik ...
3
votes
3answers
2k views

Kill a process run by a specific user

Let's say that I have several users running ''ruby'' processes simultaneously. How do I write a shell command to kill the ''ruby'' process of one particular user? (I'm on CentOS 5.5.)
1
vote
2answers
174 views

Hung application in shell

Sometimes when an application hangs in bash session (e.g. network lags in telnet, ssh, whatever) I can't kill it with ^C, stop it with ^D and even send it to background with ^Z. Is there a way to ...
0
votes
2answers
1k views

Batch File help needed for PsList/PsKill when a process is over a specific age (elapsed time)

I'd like to request some help in creating a Batch file to run on a windows server which will monitor processes which sometimes get "stuck" and linger after they should be killed. Specifcally, I can ...
4
votes
5answers
428 views

Give me my KILL-power when something goes wrong

We've had it a few times now. Suddenly our production server won't respond because a process is in an infinite loop, or the MySQL server stops serving new requests because one query is blocking ...
0
votes
3answers
2k views

How to kill processes on a remote *nix machine

I would like to issue a kill command across many *nix machines. I'm attempting to do something like this: rsh <remotemachine> ps -ef | grep <somepattern> | awk '{print $2}' | xargs n1 -t ...
4
votes
3answers
5k views

how is the windows kill process works?

I'm unfamiliar with how processes are killed in Windows. In Linux, a "warm" kill sends a signal (15) and the process can handle by instantiating a signal handler it and a cold kill sends signal (9) ...
12
votes
4answers
814 views

What *exactly* gets screwed when I kill -9 or pull the power?

Set-Up I've been a programmer for quite some time now but I'm still a bit fuzzy on deep, internal stuff. Now. I am well aware that it's not a good idea to either: kill -9 a process (bad) ...
0
votes
3answers
1k views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
1
vote
1answer
3k views

Kill Leaking Connections on SQL Server 2005

We have a legacy ASP application that somewhere leaks SQL Connections. In Activity Monitor, I can see a bunch of idle processes with Last Batch times over an hour old. When I look at the T-SQL ...
4
votes
2answers
1k views

kill -9 doesn't work

I have a server with 3 oracle instances on it, and the file system is nfs with netapp. After shutdown the databases, one process for each database doesn't quit for a long time. Each kill -i doesn't ...
2
votes
1answer
773 views

How exactly do i find the a specific samba users process id, so that i can kill it

if for example i have a word document open on a winxp machine via a samba connection, then what command at linux level can i use to find what processes have the file open, so i can kill them, also how ...
1
vote
5answers
6k views

crashed VNC sessions detect and killing

I have following issue, many users create VNC session and after that forget about them. After some time these sessions crash and start to consume about 100% power. Then somebody has to manually kill ...
2
votes
1answer
300 views

kill sessions for other machines

I've an admin and client site. Multiple users will view at client site at the same time. It is possible that I can force the users logout of my client site from admin site? I'm now using classic ASP ...
2
votes
2answers
103 views

Guaranteeing Shell Responsiveness on Pegged System

So my system is getting DOS'd, or I've just opened a kind-of-huge file (openstreetmaps planet.osm). The system goes totally unresponsive... so unresponsive that it'll take about 10 minutes to get into ...
0
votes
2answers
422 views

order of killing parent and child processes

It seems to me killing either of parent and child processes will not affect the other. So if want to kill a parent process and all its child processes, I guess I have to kill them one by one. I ...
2
votes
2answers
3k views

kill both parent and child processes

I am running a bash script as a background job. The bash script calls a time-consuming executable. If I am not wrong, the running of the bash script is the parent process and the running of the ...
9
votes
3answers
10k views

Kill process with high CPU usage after X time? [closed]

running linux i have a few processes which tend to crash occasionally (game servers), which end up using 100% cpu. I'm looking for a program or script to check the cpu usage of a list of processes by ...
8
votes
4answers
14k views

kill a screen (but not all screens)

I have multiple screens running on an Ubuntu server that are initiated as: screen -dmS screen1 cmd screen -dmS screen2 cmd etc... And I need to kill one screen, but not all of them. What is the ...
1
vote
3answers
827 views

Gracefully stop a Windows process remotely

Does anyone know how to gracefully stop a Windows process remotely on Windows XP Professional machines (i.e. there the remote machines are running Windows XP Professional)? The pskill utility seems ...
2
votes
4answers
713 views

How can I prevent users using kill in bash?

I've tried chmod 700 /bin/kill chown root /bin/kill but a normal user can still do: kill blah ... and successfully kill the app 'blah' running under the user's account. I'm using Ubuntu (8.10). ...
3
votes
3answers
1k views

How to kill an “exiting” process on OS X (state = E)

I have a process on my Mac OS X system which is in state E ("The process is trying to exit."): % ps auwwwxc | grep -si JavaApplicationS sbwoodside 84547 0.0 0.0 0 0 ?? E ...
7
votes
7answers
20k views

How to kill a <defunct> process with parent 1

I am running Bacula on a RedHat box. From time to time, the storage daemon bacula-sd stops working and becomes <defunct>. [root@backup ~]# ps -ef | grep defunct | more root 4801 29261 0 ...
0
votes
1answer
2k views

How to automatically kill PHP processes with infinite loops at server level

I have a sandbox on my server where I allow users to run their own PHP scripts. If a PHP script has an infinite loop, it only stops when Apache times the process out (30 seconds) which is obviously ...
0
votes
1answer
817 views

How can I kill a Windows Process that refuses to die

Running Windows Server 2003, I have some processes that when killed take a a few minutes of 100% cpu to die. Using Process Explorer to view the processes threads I always see 2 threads, with one of ...
0
votes
5answers
508 views

Way to kill frozen application

I have an application that freezes. I can't terminate it with ^C, so I have to do following: $ ./myapp ^C^Z [1]+ Stopped ./myapp $ pgrep -lf myapp 18479 bash ./myapp $ kill -9 18479 ...
4
votes
2answers
4k views

Possible to send kill signal to all processes with a given ppid?

I have found myself having to regularly send kill -STOP one million processes, but they all come from the same parent. Is there a smarter way to do this?
6
votes
5answers
7k views

Find (and kill) old processes

Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are ...
1
vote
3answers
2k views

How would one programmatically kill an application?

I'd like to write a little app to loop through a directory of powerpoint presentations. I figure a likely solution would perhaps require simply running powerpoint for say 30 mins and then killing it ...
6
votes
5answers
3k views

Bash snippet for killing a process until it's dead?

I'm trying to write a robust bash script, and in it I create a background process. At the end of the script, I want to kill it. I have it's PID. I was thinking of somthing like this while [[ ps ef ...
0
votes
3answers
149 views

Schedule kill of port connections

We use VSS in our company, but have numerous cases were we can't backup the databases as users have locked them. Is there a way to schedule a kill of all connetions to the source safe service. Or any ...