kill - Send a specified signal to a process or process group.

learn more… | top users | synonyms

0
votes
0answers
32 views

program “killed” as soon as it run

Ubuntu 12.04 I have success make and output a program name algo. When I type ./algo,the terminal just directly shows 'killed' And I search the var/log/message or syslog kern.log.I don't see any ...
0
votes
1answer
33 views

I cannot kill crond - trying to stop cron service

This is frustrating, I try: service crond status And get this: Redirecting to /bin/systemctl status crond.service crond.service - Command Scheduler Loaded: loaded ...
6
votes
2answers
103 views

Kill a suspended process?

I was slightly confused by: % vim tmp zsh: suspended vim tmp % kill %1 % jobs [1] + suspended vim tmp % kill -SIGINT %1 % jobs [1] + suspended vim tmp % kill -INT %1 % jobs [1] + suspended ...
0
votes
3answers
51 views

Killing a comet zombie

I have a zombie process that is changing its PID, which is increasing. Is it possible to kill a process with PID greater than N?
1
vote
1answer
46 views

Killing PGIDs but proceses are respawning, how do I make it persistent?

I ran ps aux --forest -j to see parent and child processes. Here is an example: root 3744 3744 3744 0.0 0.2 77084 4160 ? Ss 09:34 0:00 /usr/sbin/cupsd -f lp 3747 3747 ...
1
vote
1answer
49 views

Why kill -9 -1 doesn't work?

From man kill: kill -9 -1       Kill all processes you can kill. But when I do sudo /bin/kill -9 -1 nothing happens. My uname -a for info: Linux michal-Q530 ...
0
votes
0answers
31 views

Why process is killed while a lot of memory is free?

I am running a python script in ipython. This script will take about 8GB RAM. The system has more than 80 GB free RAM but the swap is nearly 0. My script was killed after it runned for a while. I want ...
2
votes
1answer
48 views

How to kill a task that cannot be killed (uninterruptable?)

I have a task running that blocks pm-hibernate (on Linux 4.0.7-2). When I try pm-hibernate there is an error message "Freezing of tasks failed after 20.002 seconds (1 tasks refusing to freeze, ...
2
votes
2answers
47 views

How do I kill a process after detaching it from bash?

I have multiple scripts that detach a process from bash using nohup and &>/dev/null &. My question is, how do I kill the process after completely detaching it from bash. using killall or ...
3
votes
2answers
43 views

bash + how to hold shell scripts

Is it possible to hold/stop the bash script progress without to kill the process? ( by kill command ) or other command For example this script - install_linux_pkgs.bash , will install Linux pkgs ...
0
votes
1answer
141 views

kill processes in one line with kill, awk, ps, and grep

I have a few processes that spring up and I am able to print a line of the pgid's that I would like to enter into a kill command. here is what I have: sudo ps o pgid,args | grep mininet: | sudo awk ...
9
votes
1answer
938 views

Still alive, still alive after kill -9 / SIGKILL [duplicate]

An apache2 process got stuck on my server and caused problems with other services. (original problem: kerneloops after USB hardware disconnect) root@server:~# ps aux | grep apache2 | grep -v grep ...
2
votes
1answer
48 views

Can I resume make after a Ctrl+C?

I am installing gcc version 5.1 on a supercomputer cluster. I configured it and am now running the make command. It has been several hours and is still running as it is a long install, but the work ...
2
votes
6answers
375 views

How to close all proceses without restarting a machine?

I have a lot of processes running and I need to kill them all. How can I do this without restarting a machine?
1
vote
1answer
32 views

Stopping jobs by PID?

Could someone tell me why I am unable to kill the jobs below when specifying their PID? I can stop the jobs when using their % id. Mac:~ gd$ ps PID TTY TIME CMD 4523 ttys000 0:00.02 ...
2
votes
3answers
59 views

Bash | port killing loop fails

I am trying to create a bash function which should kill all processes using some ports specified in port_array. The kill-port function works if I call it myself with a port e.g. with kill-port "80";. ...
1
vote
1answer
31 views

Is Ctrl+C on make check safe?

I am installing GNU Guile and I have ran ./configure ... as well as make. I am now running make check and it is taking a really really long time. If I use Ctrl+C to abort this make check, will it mess ...
4
votes
2answers
81 views

How to kill a bunch of jobs based on ps output?

Here is output from ps: $ ps aux | grep blob ubuntu 4286 0.0 0.1 34748 9592 ? S Jan14 0:00 /usr/bin/python /usr/local/bin/pynt start_blob_reader ubuntu 4287 0.0 0.1 34748 ...
3
votes
2answers
542 views

kill: SIGSTOP: invalid signal specification error in bash script

When I use kill on command line it works. kill -SIGSTOP 1234 But if I use in bash script file I get this error: kill: SIGSTOP: invalid signal specification sh file is #!/bin/sh kill -SIGSTOP ...
3
votes
1answer
58 views

What could be happening between pidof and kill to cause “no such process”?

I've inherited quite a bit of code and am looking at a cron job that restarts a service once an hour, no other scripts touch this process and this code is ran. #The name of the process has been ...
1
vote
2answers
65 views

How to keep a process from running?

I can kill a process. But how do I keep that process from being called up again without removing it from Linux? For example, if I run something like netstat to find the port associated with the ...
0
votes
1answer
56 views

killing a job running in the background

I have started running a long job by creating a script that executes several commands on 20 or so datasets sequentially. I began in the xterm window with $ script.scr then typed <ctrl-Z> ...
5
votes
3answers
222 views

Why won't this process die after SIGTERM

I have a process which appears to be hung. When I try and reboot the process, I get a timeout. service logstash_server stop timeout: run: logstash_server: (pid 11797) 839061s, want down, got TERM ...
1
vote
2answers
307 views

Kill browser when lock screen

I am running xubuntu on a shared low-ressources computer. I would like to run a script that kills the browser (firefox and chromium) whenever the user locks the screen, so that other users can use the ...
1
vote
1answer
182 views

Linux- Stop a process running as daemon

I've started uwsgi as a daemon, how can I kill that process? Everytime I kill its pid, and then does ps aux | grep "uwsgi", it again comesin the output. I've also tried pkill uwsgi, but no use. How ...
0
votes
1answer
32 views

Exporting a piped command without evaluating output?

I'm trying to set an export that would effectively kill a process based on the PID that pgrep feeds it. Running the command kill $(pgrep myAppName) appears to work (if 'myAppName' were the name of an ...
-1
votes
1answer
160 views

writing a script using killproc

Okay, I have an assignment and I am very very new to Unix. Here is what I am trying to do: I wrote a script to kill a running process. I have to use the command killproc..I just dont know where to put ...
1
vote
1answer
93 views

Ctrl+C process termination without Terminal killing

I started using Sublime Text 3 to compile my FreeFem scripts (interpretator PDEs package solver) under Ubuntu 14.04. To invoke the interpretator I customized the build system as follows "shell_cmd": ...
3
votes
2answers
171 views

How do you stop a bash shell expansion?

I know some methods for stopping process. When I type: echo {1..999999} > filename.txt I can't stop it from running. I can stop other processes with Ctrl+C | Ctrl+D | Ctrl+\ and etc. But none ...
0
votes
1answer
130 views

A higher level of sudo killing a PID

When I ps aux | grep 'S' I see a few programs that I want to kill. According to man ps the state code for S is interruptible sleep (waiting for an event to complete). I've tried kill [Process ID ...
2
votes
0answers
168 views

Catch the kill signal when a process is in S state [interruptible sleep]

This is the process group : (ps -ejH) xxxx xxxx xxxx ? 00:00:00 sshd yyyy yyyy yyyy ? 00:00:00 sshd 8713 8713 8713 pts/0 00:00:00 bash 1234 1234 1234 ? ...
1
vote
1answer
176 views

shell script to auto kill processes matching certain criteria

when running top it shows a couple of processes got nearly 100% cpu usage of the command 'perl' PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 21287 simon 15 0 4141 ...
35
votes
1answer
4k views

Why is the UNIX system call kill named 'kill'?

I'm curious about the history of the name, it seems to me that the 'kill' system call could have been named 'signal', and the 'signal' system call could have been named 'handle'. I was wondering ...
0
votes
1answer
97 views

sleep command not doing what it is supposed to do? [closed]

Im making a bash script where I have to wait for a few seconds (max 10) then run a few commands. This is because when a program is started, it also starts a few useless subprocesses which I don't ...
12
votes
1answer
778 views

Why does running `killall init` as user log me out?

On multiple computers running Ubuntu 14.XX, I ran the command "killall init" as user, and was immediately logged out. I could log back in again without a problem. Why is this? What's going on behind ...
1
vote
0answers
127 views

Stop all processes by a user: children of supervisord are still running

I'm trying to delete a user but it keeps saying that user is currently used by process ID x I tried everything here and here, nothing works, how do I kill all the process by a certain user in order ...
29
votes
9answers
3k views

How can I kill a process and be sure the PID hasn't been reused

Suppose, for example, you have a shell script similar to: longrunningthing & p=$! echo Killing longrunningthing on PID $p in 24 hours sleep 86400 echo Time up! kill $p Should do the trick, ...
1
vote
1answer
45 views

Killing bash causes it to respawn itself

I'm SSHed into my computer at home and I'm trying to format a drive. lsof /dev/sdb2 shows: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME bash 1366 mitch cwd DIR 8,18 24576 ...
1
vote
2answers
183 views

Ctrl-z doesn't work in vi launched from Gnome terminal

I'm trying to switch Vi launched from Fedora Gnome terminal to background and go back to bash with Ctrl-Z but it doesn't seem to do anything.
103
votes
7answers
12k views

How to kill a runaway cat?

Many times I accidentally run the cat command on files that have contents up to few thousand lines. I try to kill the cat command with Ctrl+ C or Ctrl+Z, but both only take effect after the total ...
0
votes
1answer
186 views

kill parent and child because endless loop

I have a process run by cron every hour. Such process calls another one (not sourced), ie: ./childProc.sh (Not sure if this detail is important) Because of an endless loop in child process (which ...
3
votes
5answers
905 views

How to kill stubborn process

I've an annoying process that won't die: ps -A | grep "nzbget" gives me: 11394 pts/3 00:00:00 nzbget If I try: pkill nzbget (or 11394) ...I get no response and the process is still alive, ...
1
vote
0answers
106 views

pkill -P $ID working while kill — -$ID not

I was playing around with creating and killing process groups on linux ( ubuntu ) I am trying to kill a process group and am being driven crazy by the fact that pkill -P $ID works while kill -- -$ID ...
2
votes
2answers
136 views

gracefully terminating processes with killall <processname>

I am using several instances (profiles) of Icedove (Thunderbird) and when I need to close all of them, I use: killall icedove According to man killall, if no signal name is specified, SIGTERM is ...
1
vote
4answers
2k views

Killing a shell script running in background

I have written a shell script to monitor a directory using the inotifywait utility of inotifyt-tools. I want that script to run continuously in the background, but I also want to be able to stop it ...
1
vote
2answers
148 views

using sudo create another process

I have wrote a shell script names testShell.I run this shell using command: sudo sh testShell Then I use ps -ef|grep testShell|grep -v grep to check the processes created.I find that system ...
0
votes
3answers
436 views

kill several processes using awk tools

I want to stop several processes using awk.My command is like this: sudo ps -ef|grep wget |grep -v grep|awk '{print $2;sudo kill -STOP $2}' I want to stop all processes which is running wget. $2 of ...
1
vote
0answers
267 views

receive signal before process is being killed by OOM killer / cgroups

In our cluster, we are restricting our processes resources, e.g. memory (memory.limit_in_bytes). I think, in the end, this is also handled via the OOM killer in the Linux kernel (looks like it by ...
1
vote
2answers
52 views

Give group the right to send kill signals

I have a process that a user1 runs. And I need to grant all the group members the right to send some kill signal to it. So far, I always get this output: myProcess(13919): Operation not permitted ...
0
votes
0answers
55 views

Why are some processes “killable” by pkill but not killall?

I had over 20 instances of httpd (apache) processes running, so I decided to shutdown these. Normally I use killall, But when I typed killall httpd it just said: No matching processes belonging to ...