python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Kill command does the job but gives error
I'm using shell script to stop a python service and to do that I'm executing the below command.
ps -ef | grep service.py | grep -v grep | awk '{print $2}' | xargs kill -9
After executing I'm getting b...
Saad Khan
Votes: 0
Answers: 1
how to terminate process with ebpf?
I want to send_sig_info to a process from inside bpf function (execve) but it won't load.
I know that they added a helper function since kernel 5.3 but I'm working on a lower kernel.
Is there a way to...
Edeien
Votes: 0
Answers: 1
How to kill all parallel Bash/Linux tasks on condition of single instance
I have a parallelised Bash function:
#!/bin/bash
touch out.txt
vals=$(seq 1 1 20)
task(){
echo $1 >> out.txt
x=$(wc -l out.txt | cut -d' ' -f 1) #read current length of file
if [ $x...
user3329732
Votes: 0
Answers: 1
Error response from daemon: Cannot kill container: permission denied, how to kill docker containers on Ubuntu 20.04?
I'm trying to kill a docker container, but I got permission denied. I use Ubuntu 20.04, my docker version for client is 20.10.7 and the one for the server is 20.10.11.
This is the log I got:
Error res...
0x55b1E06FF
Votes: 0
Answers: 6