18,242 questions
0
votes
0
answers
59
views
How to check if a process is suspended in VBS?
Edit: None, Status or ExecutionState are not implemented so I need an alternative way to check it, but I don't have any clue where I should look.
This is what I have:
Option Explicit
On Error Resume ...
-2
votes
0
answers
52
views
Could not copy file during build due to "zombie process" [closed]
This is not a code problem. There is no minimal code example. This is problem does not belong to a specific project. This problem is about an interaction between build environment, IDE, and operating ...
1
vote
0
answers
137
views
How to make a Windows process resistant to termination (like PPL)?
I'm looking for legitimate methods to make a Windows user‑mode process harder to terminate. PPL would be ideal, but Microsoft is very selective about who can use it. What alternative options or best ...
0
votes
0
answers
71
views
Executable killed by the system on Android, but executable via "adb shell"
I have cross-compiled GCC to run on Android arm64 device and i can run it on emulator with "adb shell":
130|generic_arm64:/data/data/com.mycompany.myproject/files/sdk/hardware/tools/avr/bin #...
1
vote
2
answers
116
views
correct cleanup of spawned child processes in golang
I am working on a project in go (which I am not very familiar with), that runs as a systemd process and spawns child processes, but whenever the systemd service is restarted, I see warnings (sometimes ...
0
votes
0
answers
104
views
Cannot execute commands in Android -- Runtime.getRuntime().exec()
I am using Android Jetpack Compose to build a little app, and don't seem to be able to run terminal commands.
I have tried the following:
val cmdExample1 = arrayOf("sudo", "apt", &...
0
votes
1
answer
112
views
How are Kubernetes control plane components started when they run as static Pods?
I've been diving deep on my learning Kubernetes clusters. I want to know how kubeadm starts up each control plane component and in what order?
After reading the Kubernetes documents, I wasn't sure. ...
0
votes
2
answers
95
views
PowerShell Get-Process not working correctly when we have multiple instance of process
I am trying to record CPU and memory utilizations of processes running in my window server using PowerShell. Script is running well but I am not getting anything if Mutiple process are running with ...
1
vote
1
answer
79
views
What are the basic rules for propagating lists and dictionaries across processes using the Manager of the multiprocessing module?
I am trying to use the multiprocessing module to parallelize a CPU-intensive piece code over multiple cores. This module looks terrific in several respects, but when I try to pass lists and ...
1
vote
2
answers
151
views
Rust invoke Java server via Maven on Windows without "Terminate batch job" message when stopped
I'm writing a CLI in Rust, and I want it to work on Windows or Linux. I want it to invoke Maven in order to run a Java program. I already have this working in a Bash script that I can invoke via Git ...
-2
votes
1
answer
73
views
How to run a continuous bash program and have C start it, get input, and send it output, then gets it's input and then send it output [closed]
I've searched around and couldn't quite find and answer to this.
I'm trying to get C to open a bash program called L.
The I want to be able to run the program using something close to system or popen.
...
0
votes
1
answer
179
views
Java Process.waitFor() does not wait
I am following a book on Java 'Java: The Complete Reference, 11th Edition" which has the following code
class ExecDemoFini {
public static void main(String args[]) {
Runtime r = ...
-2
votes
2
answers
113
views
Why do i need to use rising_edge in this VHDL code? [duplicate]
so what is the difference between these two vhdl programs:
process(clk)
begin
if(clk=1)
q<=d;
end if;end process;
and this one:
process(clk)
begin
if(rising_edge clk)
q<=d;
end if;end ...
0
votes
1
answer
65
views
Does DMA play a role in process loading (from disk to memory)?
I’m trying to understand how operating systems load a program into memory from a hardware perspective.
I know that DMA (Direct Memory Access) is used for I/O operations, allowing data transfer between ...
0
votes
0
answers
56
views
Running a Web API as a Process with a real tcp socket .NET
I am trying to run a test for my project that will need the whole API app to run by using process to start and run the application on a real TCP socket for eventual pact testing.
The API seems to ...
0
votes
1
answer
52
views
Swift code to convert .py files to .mpy using mpy-cross
So I thought I'd have a bit of fun writing a small app in Swift to batch convert .py files to .mpy, using mpy-cross. mpy-cross works fine from the command line - it takes a .py file and outputs a new ....
2
votes
0
answers
108
views
Will passing the file descriptor of a socket to a child process still work correctly?
I am new to network programming. I am on Linux, and I am using C++, the sockets API, and process API. I am trying to understand if what I am trying to do is possible or not.
The goal of my program is ...
2
votes
2
answers
115
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 = "...
0
votes
1
answer
61
views
start a process in the host from docker container [duplicate]
As title suggests, I was interested into making a process start directly on the host, called inside a Docker container.
Do you have any idea on how I could accomplish this goal?
To be more precise, ...
0
votes
0
answers
32
views
In case spawn of electron, I can't see output of process in realtime
I'm beginer of electron, and I learned I can execute external program with spawn function.
But, when I execute external program, I can't see output data of the program immediately.
This is my external ...
5
votes
1
answer
304
views
SIGQUIT in child process does not produce core dump despite status showing a core dump was produced
this behaviour has been driving me crazy, lately, though there is probably a reasonable explanation, maybe even a fix.
I am currently learning C and have to write my own shell in school and was ...
0
votes
0
answers
24
views
How to Convert this CMD line to System.Diagnostics.System ProcessStartInfo.Argument
I have this command line that someone helped me with:
type "\\NetworkDriveLocation\Folder\test.pdf"|find "pdf:Keywords"
I want to execute this in C# using System.Diagnostics....
2
votes
0
answers
109
views
How can I kill a long running process when my MacOS app is terminated?
Within my Mac application, I start a long running process (a local server) as so:
let process = Process()
process.launchPath = "/bin/zsh"
process.arguments = ["-c"] + ["'\(...
0
votes
0
answers
58
views
pwntools [Errno 24] Too many open files [-] Starting local process
I'm having an issue with some code I'm writing. I'm getting this pwntools error about too many files being open.
My code looks like.
for a in range(0,2**3360):
try:
with open(&...
0
votes
0
answers
65
views
Check if a standard Windows user is launching an application with Run as Administrator option using Windows service
I've a custom Windows service (written in C#) which basically I'm using for whitelisting or blacklisting Windows applications. I don't want to use any existing Windows functionality or any commercial ...