Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
66 views

I'm using Bash 3.2 in macOS Tahoe. I've hacked together this function to show an informational dialog: showDialog(){ local strDialogText=$1 local intDialogSeconds=$2 IFS='' read -r -d '' strJS <&...
Robert Kreegier's user avatar
0 votes
0 answers
50 views

In my env, some child processes are started by one systemd service, if there is something wrong with one child process and OOM is triggered by it, all the processes (all the child processes and the ...
vfivept's user avatar
  • 35
1 vote
1 answer
98 views

Take this simple program in Haskell {-# LANGUAGE OverloadedStrings #-} import Control.Exception (finally) import Control.Monad (forever) import Xmobar (tenthSeconds) import DBus.Client startServer' :...
Enlico's user avatar
  • 30.4k
1 vote
1 answer
70 views

I work with a BI software that generates dashboards for clients. We build charts for the clients by creating stored procedures under our own schema for rendering. Each stored procedure is a SQL query ...
Michael Aranda's user avatar
0 votes
0 answers
70 views

I have a node process that was originally started with the following command line: nohup npm run serve-prod & The process runs on port 5003 and I can see it listed with ps as follows: ps -ef | ...
Nick Roper's user avatar
0 votes
0 answers
32 views

I'm working on an Android app using Eclipse Paho's MqttAsyncClient (In Android) with SSL and multiple broker IPs. The idea is to that some nodes can be died and multiple IPs should improve system ...
Bogdan Madzhuga's user avatar
1 vote
0 answers
133 views

From a Python program, I start xfce4-terminal as a subprocess. When calling .terminate(), xfce4-terminal is still there. Not nice. So I tried to kill it more abruptly - surprisingly, the corresponding ...
mguijarr's user avatar
  • 8,058
3 votes
1 answer
153 views

I'm trying to test a program, that forks and execs with libcheck (https://github.com/libcheck/check). When I run the program normally it is able to create the subprocess waits a bit and then kills it ...
Caulder's user avatar
  • 465
0 votes
0 answers
29 views

def __remove_progress_without_lock(self, k): import os import signal if k in self.progress_map: p = self.progress_map[k] if p.is_alive(): # p.terminate() ...
x xi's user avatar
  • 1
0 votes
1 answer
61 views

I have a queue with threading setup. I need it to kill the process if it runs longer than 2900s which works fine. I'm wanting to write out information if it has to kill the process because it ran to ...
Rankinstudio's user avatar
0 votes
1 answer
72 views

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+...
Priyansh Gupta's user avatar
0 votes
0 answers
72 views

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....
Mark Tarver's user avatar
0 votes
0 answers
23 views

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 ...
N3woX's user avatar
  • 1
0 votes
0 answers
78 views

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 ...
antonio 's user avatar
1 vote
1 answer
98 views

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 ...
robybert's user avatar
0 votes
2 answers
54 views

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 ...
imanuel ben chaim's user avatar
0 votes
1 answer
104 views

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 &) ...
Aaron's user avatar
  • 1
3 votes
1 answer
326 views

I spawned a child process with: let child = Command::new("./chromedriver") .spawn() .expect("Failed To Run Chromedriver"); I want to kill it at the end of the execution ...
YuhaoHanHarry's user avatar
0 votes
0 answers
183 views

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 ...
user06931912's user avatar
-3 votes
1 answer
415 views

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:...
user180574's user avatar
  • 6,244
0 votes
0 answers
39 views

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&...
vini8cs's user avatar
  • 11
0 votes
0 answers
238 views

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 "...
NigelS's user avatar
  • 3
0 votes
1 answer
5k views

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 ...
Warninn's user avatar
0 votes
0 answers
105 views

In the production environment。The process of JVM was killed by an unknown reason. jdk_version:dk1.8.0_66 add jvm params: XX:+UseG1GC -Xmx10g -Xms10g -XX:ErrorFile=/opt/log/error.log -XX:+...
jinshun kang's user avatar
1 vote
0 answers
635 views

I am writing some unit tests for a python program that requires the background execution of a port-forwarding command to query a service. The program is a Kubernetes operator written in python using ...
Neah-Ko's user avatar
  • 55
-1 votes
1 answer
147 views

I'm doing an app that asks every 10 seconds what i'm doing and to do that i've made a "dialog activity" that creates a multiple choice, here is the code: import android.app.AlertDialog ...
Brinax's user avatar
  • 46
1 vote
1 answer
123 views

If the child process is caught in an infinite loop, the 'exit' event is never handled. How do you force a worker to stop in this case? "use strict"; (async () => { const cluster = ...
pronodingo's user avatar
0 votes
1 answer
444 views

I have a function that through exec() kills a php-fpm process. exec("kill -9 ".$pid); Everytime I call it, a line gets added to the php-fpm log WARNING: [pool xxxxxx] child 18120 exited on ...
greg's user avatar
  • 430
0 votes
1 answer
54 views

we are tyring to kill the yarn job from Java using http put call with out kerberos it was working.. but after we enabling kerberos we are getting 403 error we are able to generate kerberos credentials ...
rajani's user avatar
  • 19
0 votes
1 answer
209 views

Any time I run git commit I get the following error: error: git-seekret died of signal 9 This error occurs no matter what changes I am committing, small or large. It happens on all repos on my ...
John Skiles Skinner's user avatar
0 votes
1 answer
488 views

I got a Visual Studio solution with a console project inside. When running in debug the console application it seems to run till it ends. But apparently, the corresponding *.exe is still in use, since ...
Art's user avatar
  • 267
0 votes
0 answers
66 views

I want to kill a child process created using spawn in Node.js Its working fine on Linux OS var spawn = require('child_process').spawn; var child = spawn('kate', {detached: true}); // to open Kate ...
Alok's user avatar
  • 11k
-2 votes
1 answer
327 views

I'm kinda new to bash and I'm trying to do a bash script myself that can check and install specified packages if they are not present in the system. It should be called in some other script, and if ...
NotYourFox's user avatar
3 votes
2 answers
2k views

I am trying to briefly spin up an HTTP server, so that I can call a subprocess that needs to access local files over HTTP, but running the server using the following code blocks further code from ...
reynoldsnlp's user avatar
  • 1,295
-1 votes
1 answer
126 views

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click Dim steamkill() As String = {"steamwebhelper.exe", "steam.exe", "steamservice.exe"} ...
smsi's user avatar
  • 49
0 votes
1 answer
62 views

If a Service implements a thread, it would hold the reference to it using a class field, so that it could later stop the thread by calling the proper methods (e.g. quit() or quitSafely() in the case ...
capalloc's user avatar
-1 votes
1 answer
68 views

When the child process executing the program a is sent the signal SIGTERM, it should output to the stdout just before terminating. But my read() in (signal == 1) is running? I get no output from the ...
Addscott's user avatar
0 votes
1 answer
153 views

I'm doing task which is Signal Communication with Separate Alarms and Parent-to-Child Signal. but i got a question about the output i got. #include <signal.h> #include <stdio.h> #include &...
tof's user avatar
  • 3
0 votes
0 answers
171 views

A UI timeout is happening in 65 seconds, and the long query keeps running in Snowflake. Once UI hits the timeout, I want to kill all these running queries from PHP backend code. Is there any way to ...
Mukul Kumar's user avatar
0 votes
1 answer
64 views

I am trying to run Flask in a subprocess, so it gets its own core. so far so good. The code that starts flask in a subprocess is in my flaskSubprocess.py file, and can be seen below. In my main I ...
sharkyenergy's user avatar
  • 4,221
0 votes
0 answers
160 views

I start a c program from java which collect data from a usb device and write to a file . like Below Runtime run = Runtime.getRuntime(); Process cprocess = run.exec(command); cprocesses....
jasmi's user avatar
  • 1
0 votes
1 answer
39 views

I usually work in the project which branches have so many differences, branch checkout is similar to start a new project. With branch checkout, IDE just hangs because too many changes (more than 2 ...
Kenya-West's user avatar
0 votes
1 answer
117 views

I am using this code to make a killswitch for my program killSwitch = Popen(['killswitch.exe', str(pid)]) it feeds in the pid of the main thread, if the main thread becomes unresponsive i can use a ...
Paul's user avatar
  • 73
0 votes
3 answers
2k views

It shows this error error listen EADDRINUSE: address already in use :::8081. Error: listen EADDRINUSE: address already in use :::8081 Things i have tried kill -9, killall node, adb reconnect etc ...
user avatar
1 vote
1 answer
115 views

Consider the following situation: I use fork() to create a child process from my program Parent process receives the PID as 1234. Child process then calls execvp("myotherprogram", some_args)...
Karl Nicoll's user avatar
  • 16.5k
2 votes
1 answer
171 views

I have a buffer of a directory using the dired command. I have some marked files in that buffer and I want emacs to prompt me before I kill the buffer. I understand I have to write a hook but don't ...
jordan's user avatar
  • 31
-1 votes
1 answer
293 views

I have a requirement such that if a file in particular path is deleted, then my program should kill an running exe program and sleep for 5 minutes so that my software will automatically start the same ...
Krishna Chaitanya Bezawada's user avatar
-3 votes
3 answers
2k views

I am coding on an M2 Macbook Air, and when right clicking on the termial in VS Code, I see 2 commands: kill terminal and clear. What is the difference between both? They seem fairly similar.
dave9060 dave9060's user avatar
0 votes
1 answer
129 views

I'm getting crazy while trying to make an app that will kill specific other app clear the killed app cache restart the killed app again for Android TV 10 lets call this app "the killer app"...
Dexter's user avatar
  • 1
1 vote
1 answer
602 views

I am trying to start a process on port 3000 and 3080 in a node.js app. I want to check if these ports are already running processes and want to kill those processes. I tried portscanner but no luck. ...
user34534's user avatar

1
2 3 4 5
33