Questions tagged [kill]
Kill is an operation of removing an object or process from memory so that other processes/variables can use them.
kill
1,607
questions
0
votes
1
answer
36
views
Cannot kill Popen process [duplicate]
I have a Python program with the following structure and necessary imports:
def startLogger(logger_dir):
command0 = 'adb logcat -c'
command1 = 'adb logcat'
command2 = 'python3 '+logger_dir+...
-1
votes
0
answers
17
views
Cannot kill process which ocupying the port 8080 after executing "kill" cmd
I cannot kill the process that ocupying the port 8080. After I find the current process which takes the 8080 and kill it, it shows that there is another process would take the 8080.
First I try the ...
0
votes
0
answers
20
views
killing a TCl/tk process cleanly in Windows
I'm having to kill a TCL/tk process in the task manager
and I want to do it within the batch file.
Here is the batch file that calls up the TCL/tk process.
START /B sbcl-shen.exe
C:\ActiveTcl\bin\wish....
0
votes
0
answers
16
views
Kill mouse event
I am wondering is there a way with Python that
we can detect process that use a click event so we can kill them.
That would help in the step of an anti cheat
I asked my friend if he can code something ...
0
votes
0
answers
29
views
.NET Process.OutputDataReceived still receiving data after unsubscribe the Event Handler and Kill the Process
Please. I need to read data from a process asynchronously because sometimes data is received indefinitely and cannot be read synchronously. When I have read enough characters, I unsubscribe from the ...
1
vote
1
answer
66
views
C++ kill() crashes linux to login screen
i am having problems with a project of mine,
i am creating child processes with fork and then terminating them with kill(pid,SIGINT) and then restarting them
after the second time interrupting the ...
0
votes
2
answers
37
views
How kill previous activities
In my app I have in the mainActivity intent that move mw to the second activity and in the second activity I have also intent that move me to the main activity.
Now when I press the back button in my ...
0
votes
0
answers
18
views
How can I kill spid with talend
When I try to 'Kill Spid' with Talend it doesn't work.
How can I handle this sitiuation?
When I try, Talend returns the result as below and does not close the session.
"kill command cannot be ...
0
votes
1
answer
47
views
Why does my Bash script give an error at the end of ps command when I terminate background a process?
So for my class I am tasked to write a script, everything works fine until after the ps command finishes output it also adds an error message (script.sh: line 42: PID Terminated sleep 900 &) ...
0
votes
0
answers
44
views
Error message when killing process in bash
Linux version: Linux <server_alias> 3.10.0-1160.76.1.el7.x86_64 #1 SMP Tue Jul 26 14:15:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
I have the following function :
killProc () {
local ...
-3
votes
1
answer
138
views
linux: cannot use kill with verbose [closed]
I try to find a list of processes and kill them using verbose option, but not successful.
$ kill --verbose -9 $(ps -eo pid,cmd | grep cmd_name | grep -v grep | awk '{ print $1 }')
bash: kill: -verbose:...
0
votes
0
answers
27
views
How Can I handle subprocess when a process is killed by lack of memory?
I'm trying to handle an error when a subprocess doesn't run because of a lack of memory. However, no exception is working in this case. What should I use?
ribodetector = [
"ribodetector_cpu&...
0
votes
0
answers
41
views
Is it a coincidence that my service is killed almost always after Thread.sleep()? There are other ways for making an android service "unkillable"?
I have an app with a service that run in the foreground and perform some tasks.
Of course whenever the system believe there is little memory available it kill my service.
By looking at the logcat I've ...
0
votes
0
answers
120
views
Find, stop and restart a process with bash script
I'm running 'motion' on a Raspberry Pi and need to periodically restart it (or other processes).
#!/bin/bash
# find and restart running process motion
sudo kill $(pgrep -f motion)
sleep 5
echo "...
0
votes
1
answer
236
views
How do I kill/remove the process currently using a port on localhost in Windows?
I do not have admin permissions on my computer. I am trying to kill the processes of a localhost port.
I have tried netstat -ano | findstr :6543 and taskkill /PID 6360 /F and it said ERROR: The ...