696 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
2
answers
118
views
Powershell script to kill it after it runs AND capture standard output
I have an executable that does a bunch of processing and then waits for a keypress. I'm trying to run this Powershell script from the Windows scheduler. Here's my original attempt:
$logFile = "...
3
votes
2
answers
111
views
pause() might be blocking previous signals
I'm basically trying to implement a mini chat between two processes using only unix signals.
For that purpose, I have some code where I call pause() to wait for some signals, that are handled with a ...
-1
votes
1
answer
106
views
how to kill a loop without killing the running process
I have a loop like this running in the background. At some point, I want to stop the loop from going to the next iteration, but I want the current process to continue running until it completes. What ...
1
vote
2
answers
186
views
How can I avoid a memory leak when force killing PowerShell?
I'm making a Python script that creates shortcuts using PowerShell. I've taken advantage of the fact that if a network path isn't available it will take a long time to create the shortcut. I force ...
0
votes
1
answer
56
views
How to terminate application opened by python subprocess
I am trying to open a pdf file with the default application on macos, which is preview, with
import subprocess
doc = subprocess.Popen(['open', 'path_to_doc.pdf'])
and close it.
I have tried the ...
1
vote
1
answer
64
views
Kill process based upon process Id powershell - xaml listview
I have a xaml listview with a button. The listview shows all processes that have powershell* or pwsh* in them. I want to be able to kill any of the processes by clicking a button but so far nothing I'...
0
votes
0
answers
76
views
Creating a software killswitch in order to stop a loop that is running too fast to stop from IDE in Micropython
I am having some trouble with a code that I've written in MicroPython, for a Raspberry Pi Pico. I don't have any hardware killswitch installed, so I want to do that from a software implementation ...
0
votes
0
answers
38
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
1
answer
138
views
How to kill a bash script as well as the python program started within the bash script?
I use nohup and bash scripts to help manage my python programs running on a local server. I have a bash script (tmp.sh) to invoke several python programs in a row. I try to kill the bash script and ...
-3
votes
1
answer
92
views
How to treat Python interrupting (killing) process because of large files processing?
I have this little script:
import pandas as pd
import os
import glob
novas_colunas = [
'UF', 'Municipios', 'Área de Ponderação', 'Controle', 'Peso Amostral', 'Região Geográfica', 'Mesorregião', '...
0
votes
1
answer
179
views
Kill the process with processId
I have a Q_Object class.
In this class, I want to start and stop a process with the send and stop function
My send function is working fine and when I click it my process is running but when I click ...
0
votes
1
answer
103
views
How to properly kill the child Java process when AvaloniaUI app is exiting?
In my AvaloniaUI app, I'm running an Java application as a Process.
private static Process _process;
string command = $"-jar \"{jar}\"";
ProcessStartInfo startInfo = new("...
0
votes
0
answers
181
views
Flutter: Get User Location and Update on Firebase if user kill the app or terminate
I have done with fetch location and update on the firebase when the app is in foreground or background but i want if user remove the app from recent then it still update the user location on the ...
0
votes
1
answer
371
views
Halting "conda remove" command in Miniconda3
Background: I'm working on a research project on a High-Performance Computing machine running Linux OS that requires a fair amount of setup to log into. I use MobaXTerm and a VPN; it takes a while to ...
0
votes
0
answers
86
views
Resolution to keep Mysql production server safe from Long running queries
Mysql: 5.7 on AWS RDS
On our production server some queries are running so long.
show processlist output
Here this select was running from 1278013 seconds. We have given the production read access to ...