Questions tagged [kill]

125 questions
1
vote
0 answers

Kill a hanging sync from a cifs drive

I copied a file to a cifs drive and instinctively ran a sync on it, which hung indefinitely. Strangely, I could successfully unmount/remount the drive without issues, making me think that the drive simply didn't respond to the sync call properly. It…
1
vote
1 answer

how to stop for loop on another tty

We are connecting to the same host via the same user. So, only our sessions/tty are different. If one of us starts a for loop such as:for i in *; do command $i; done, I don't know how to stop it. All I can do is search for the command name in ps aux…
Sam Gold
  • 11
  • 2
1
vote
3 answers

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 to only do forceful terminations, and the taskkill…
russcollier
  • 203
  • 2
  • 10
1
vote
1 answer

Killing process group safely

How can one kill a process group safely, and force kill if needed? The goal is to do a kill with SIGTERM (-15) then if the apps in the tree do not die after a timeout (e.g. 60 seconds) do a SIGKILL (-9). We have a scenario with parent process and a…
suh
  • 13
  • 6
1
vote
3 answers

Un-killable user processes in Linux?

I use sshfs (fusermount) to connect remote mountpoints. When I forget to unmount them using... fusermount -u /REMOTE ...all processes which used the mountpoints hang. I try to kill them with killall, kill, killproc, nothing works! How is that…
1
vote
1 answer

Kill process and child processes, not parent processes, not group

I need to kill a process and all of its subprocesses programatically. Killing the group is not an option because I do not want to kill the parent processes. Example: pid process 1 nice parent process that should live 2 …
firelynx
  • 119
  • 1
  • 4
1
vote
1 answer

MariaDb and Httpd getting killed due to memory

I have a Centos7 VPS on OVH with this settings: 1Virtual Core 1 GB Ram 10 GB Raid 10 I have running on it 3 wordpresses. One of them is still on building (0 access to public), other has very few people watching it, and the other has many views…
Cafn
  • 131
  • 2
1
vote
3 answers

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 before running powerpoint again with another…
1
vote
3 answers

get PIDs of processes from

I have a path to an executable. Assume I want to delete this file. I need to find all processes launched using this file and kill them. What is the best way to do it?
Victor Mezrin
  • 113
  • 1
  • 7
1
vote
1 answer

How to know which user killed a process

Is there a way in linux to find out which user or which process killed another process? Maybe a log? I searched through /var/log and specifically on auth.log.* but I didn't find anything interesting.. I suppose that the process was killed using htop…
gc5
  • 137
  • 1
  • 7
1
vote
1 answer

I just installed a profiler into Tomcat 7 and now I'm getting BindException on shutdown

So the HOWTO I just read says to add these JAVA_OPTS to the startup script: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=[place port number…
user447607
  • 493
  • 1
  • 6
  • 9
1
vote
3 answers

kill script execution

I have a script that I have to run with certain frequency. This script executes a number of programs, in a loop, setting some variables in each loop. Since this script runs for hours, I run it using the linux "at" command, doint at now >>…
cauchi
  • 197
  • 1
  • 2
  • 6
1
vote
3 answers

How to safely kick out other users logged in as root?

I tried this: pkill -KILL -u root It turns out that wasn't what I wanted. Now I can't log in by SSH. What is the correct way? Edit - I've added the word "safely" to the question. I know that you should not kick out root users because they might be…
Buttle Butkus
  • 1,741
  • 8
  • 33
  • 45
1
vote
3 answers

linux/solaris kill many proccess with one command

Is it possible to kill all find process with one command? I do not want to kill each process as kill -9 25295 , kill -9 11994 , etc.. Rather, what I want is a simple way or command that kill all find process (my target is to perfrom this action on…
yael
  • 2,433
  • 5
  • 31
  • 43
1
vote
1 answer

ps and top show a different command name then what pkill and pgrep sees

Often times I want to kill process that I believe has changed its command name (I think through setproctitle() or something similar). Apparent pkill, pgrep, and friends do not read the new command names (ie ruby process renames its command, pkill…
Adam Gent
  • 260
  • 1
  • 7
1 2 3
8 9