Questions tagged [process]

This tag is about operating system processes. It may also refer to a specific construct on a given platform, e.g., the System.Diagnostics.Process class for .NET

Filter by
Sorted by
Tagged with
0 votes
2 answers
46 views

Function that can execute every other function

I'm studying threads in university and I would like to make a library in C that does similar things to pthread but using processes and then compare the performances of both. In other words I would ...
Emanuele Falanga's user avatar
0 votes
1 answer
17 views

Supervision strategy of a separately started process

Consider the following module-based Supervisor: defmodule MyApp.Supervisor do use Supervisor def start_link(init_arg) do Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__) end ...
category's user avatar
  • 2,125
-1 votes
0 answers
19 views

how to modify `ps` name for rust process [duplicate]

how to modify ps name for rust process. we hnown we can modify a clang program process name by modify argv[0]. example: /* gcc test.c -o test */ #include <stdio.h> #include <string.h> ...
duguying's user avatar
  • 111
0 votes
0 answers
6 views

Node js is hanging if I start the app using Java process builder

I have a node js express app which will have APIs for FTP operations using FTP4 node js library. If I start the application using CMD prompt, it is working peroperly. But if i start the same app using ...
Perumal's user avatar
0 votes
0 answers
16 views

InputSimulator Keyboard.TextEntry is not working

I'm trying to open a notepad instance and write a virtual text entry to it. The notepad opens securely but nothing is written on it. What would be the problem and why? using System; using System....
Oscar RoAh's user avatar
0 votes
0 answers
5 views

Transfer captured map into another template using visio

Transfer ℹ️ from a map to another template applying swimlane, appropriate symbols. Using visio to clean up a process map. I have a template that the other map needs to be converted to. Appropriate ...
Maureen Agumadu's user avatar
0 votes
0 answers
36 views

Can not open EXE interactively while running PowerShell remotely using C#

I am trying to execute PowerShell command on remote machine using C# code. This command should launch notepad in the remote computer. I am facing two issues: While executing code, I can see process ...
Minesh's user avatar
  • 1
-1 votes
0 answers
27 views

Is there a way to get information(for instance CPU time) programmatically of root processes on macOS?

I need to gather information about running user and system processes. I'm using macOS and I am currently unable to get information about root processes. I have tried using proc_pidinfo from <...
Jh22's user avatar
  • 1
-1 votes
1 answer
31 views

How to change streamlit process name in ubuntu 22.04

There are two streamlits apps are running in my server, when the apps are deployed in Ubuntu VM server, we execute the following command $ nohup streamlit run dashboard1.py >data.out 2>&1 &...
anthoniraj's user avatar
-1 votes
0 answers
25 views

When to use sub processes in Bpmn 2.0?

When would you use sub processes in Bpmn 2.0? I know sub processes are processes that are part of a larger process. Is there a rule for how many steps can be included in a sub process? Can something ...
Susan Lee's user avatar
0 votes
0 answers
13 views

Can't use process.binding directly

I'm trying to bypass a JS sandbox and I need to invoke spawn without child_process, so I used the following to test it: let spawn = process.binding('spawn_sync').spawn let result = spawn('open', ['/...
daisy's user avatar
  • 22.7k
1 vote
0 answers
19 views

stream.PipeTo() finishes node process

I've been learning about WebStreams. I wrote a simple code that uses ReadableStream and WriteableStream. But when I want to show a message on console after stream.pipeTo(), it doesn't works. What's ...
mirkete's user avatar
  • 11
0 votes
6 answers
128 views

Using data from a supervised processes to start another

The documentation details the following: When the supervisor starts, it traverses all child specifications and then starts each child in the order they are defined. This is done by calling the ...
category's user avatar
  • 2,125
0 votes
0 answers
9 views

Determine whether child process terminated by SIGINT

How can a parent process determine whether the child exited due to SIGINT, or because it finished execution? For example, if the child sends SIGINT signal to itself, can the parent know this?
ssamtkwon's user avatar
1 vote
1 answer
31 views

How can I make a child process's stdin inherited and piped?

I want to create a child process that will take normal input from the parent stdin. but at the same time i want to send signals through its stdin (ctrl+c - 0x03 like xterm does). Using the standard ...
JumpyLionnn's user avatar
-1 votes
1 answer
52 views

How do I get a Rust Command to actually output to stdout? [duplicate]

I am trying to use Command::process to spawn some processes and to get started I want to check I can get a simple command like echo to work correctly. I want to take some user input and then spawn a ...
whatf0xx's user avatar
  • 120
0 votes
1 answer
39 views

Running c# Process with higher privileges and password in Linux

I'm trying to run a c# (.net6) process with higher privileges in Linux with a password that has a dollar sign ($) and it always fails. I've tried: var stInfo = new ProcessStartInfo { FileName = &...
togarha's user avatar
  • 165
0 votes
0 answers
10 views

environment variables in google extension [duplicate]

I am trying to use environment variables in google extension. Can someone explain how to use it? I tried the standard way, but process keyword is not available in google extension.it just gave me this ...
Headson's user avatar
0 votes
1 answer
49 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("...
Nortia's user avatar
  • 13
-1 votes
0 answers
13 views

Is it possible to run exe inside another program and read its stdout and give stdin to that exe realtime?

I have an executable (without source code) and its in Portuguese but I want to modify it to display content in English, Is it possible to run that program inside another program and read its output ...
hazed's user avatar
  • 1
0 votes
0 answers
56 views

Is there a way to run multiple processes on two different cores in python at the same time?

I am building a app using tkinter and customtkinter. I want it to update the screen every single second but every 3 seconds I want it to get the price of certain stocks that are in a list of stocks....
Alex Bergandine's user avatar
0 votes
1 answer
32 views

Finding Sytem Level Processes that are running in JavaScript

How can I tell whether a process running on a device is system-level (like Windows PowerShell) or not (like Discord.exe) by getting the username of the process? I've tried using several libraries, but ...
Christian McCulley's user avatar
0 votes
0 answers
19 views

Execute node.js npm package from node:child_process using `spawn` function

I'm building an obsidian plugin. I'm able to get a callback for node.js function that run in electron. I want this command will go to a specific path and run 'npm run slidev' in a configured path. I ...
Nir Tamir's user avatar
  • 121
0 votes
0 answers
11 views

Detect if a python pdb process is in break or waiting state

In Unix OS, is it possible to detect if a python program running in pdb, is in "break" or "waiting" state, given the process ID? I would like to detect that from outside the python ...
Hadikhamoud's user avatar
0 votes
1 answer
35 views

FIFO communication issue [Fixed]

I'm practicing linux fifo reading and writing. I created two files. One is client.c, and another is server.c. I'm trying to swap the name of the two program. So I created two fifo. client first writes ...
Harvey Yeh's user avatar
2 votes
1 answer
30 views

Flutter / Android: Start executable from assets

In my flutter application I have an asset which is an executable and I like to start that as interactive child process on android. My Test-Code is like this: rootBundle.load("assets/engines/...
tps's user avatar
  • 85
0 votes
0 answers
39 views

Three processes using Pipes is not running third process

I am working on a project for a computer architecture class, and I can't figure out why the third process in my C code is not running. I was given a skeleton code by the TA, and I went to an extra ...
Samantha Garcia's user avatar
0 votes
1 answer
26 views

Why does the browser hangs when I'm running a ghostscript process in a laravel application?

I'm building a PDF compressor app with Laravel 10. I'm using the Process class to execute the Ghostscript command on the server: $cmd = "gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -...
Toni Joe's user avatar
  • 7,827
0 votes
0 answers
100 views

terminate cmd line process before process finishes via bat file

I'm trying to write a bat file the runs a process that takes about 1 hour to complete, terminate it after N minutes, then start another process. After running a series of commands in this manner, I ...
Tim Kirkwood's user avatar
0 votes
0 answers
12 views

PyInstaller - No console executable with outputs

I have a .NET application that needs to: Run an executable file that is created in Python Read the outputs of this executable (such as status messages, exit codes and exception messages) The major ...
Daniel Möller's user avatar
1 vote
1 answer
32 views

Parent Process exit when using sigaction(SIGCHLD, &sigchld_action, NULL)

I am learning how sigaction SIGCHLD handles zombie process. My expectation is child process sleep for 5-30 seconds (based on random number), parent process sleep for 30 seconds. But it's weird that ...
idiot one's user avatar
  • 344
-1 votes
1 answer
34 views

Is it possible to play video with audio on a single processor computer which can run only one process at a time

From what I know about processors and it's working, one processor can run one process at a time. So for a task like playing video which have more than one component like playing video and audio that ...
Vipul's user avatar
  • 19
0 votes
0 answers
11 views

How do I stop writing to ffmpeg.swp from being attempted every time i start terminal

6 months ago I tried working with ffmpeg to convert an audio file. I probably did something very wrong because it failed with permission denied, and has been reminding me since then every time I start ...
Ian Delord's user avatar
0 votes
0 answers
27 views

How does threading and statefulness work in Laravel?

I’m trying to understand the process and execution model for Laravel/php running on httpd or in dev mode with php artisan serve. I’ve been struggling to find a resource that answers questions like the ...
ChaseMedallion's user avatar
1 vote
1 answer
41 views

A weird question about fork() and physical address in Linux

A professor who teaches Linux sent his students this weird question... The weird thing is that, this program will give an output where the parent process and the child process will get the same ...
V_town's user avatar
  • 13
1 vote
1 answer
44 views

How can I know if all processes in a process group are collected?

I'm learning signals and writing a simple shell program. I run into a problem that the shell needs to wait for a foreground job to end, which may consist of multiple processes. It seems that I need to ...
adong660's user avatar
0 votes
0 answers
21 views

Alfresco Process Services - ERROR when configuring Alfresco repository w/ basic authentication

I am trying to configure an Alfresco repository connection using basic authentication in Alfresco Process Services. However, I get the following error appear when I attempt to authorise an account ...
Matt's user avatar
  • 1
-1 votes
1 answer
29 views

How the child process works on its own directory?

Consider a Go program that runs another exe file: command := exec.Command("C:\\myapplication.exe") if err := command.Run(); err != nil { } And consider that myapplication.exe contains below ...
Nisary's user avatar
  • 1
0 votes
0 answers
37 views

Understanding what a memory dump/snapshot/state is

I have a game in which there is a character who can walk, run, and jump. He has health. I can save the state of the game (process) - take a snapshot, dump using a special tool. Then walk around, run, ...
WideWood's user avatar
  • 549
1 vote
1 answer
41 views

Running concurrent process in C and measure running time

I'm creating a program in C that loads a matrix from a file, divides it in N segments to be given to N processes. Each process should count every 0 element in that segment of the matrix. I should ...
Nicolás Montañez Velasco's user avatar
0 votes
0 answers
48 views

Automatically stop python process launched from batch file when windows scheduled task terminate

I have a scheduled task on Windows server that runs a .bat file. Essentialy, that batch file starts a python script, which watches for changes within a specific directory. The python script will not ...
Below the Radar's user avatar
0 votes
0 answers
14 views

in spring 2.7.17 Failed to initialize JPA EntityManagerFactory: Unable to build Hibernate SessionFactory; nested exception is org.hibernat

I'm working on Spring boot project. Actually, refactoring code. And getting this mistake as follows: Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] Unable to build Hibernate ...
Chakradhar's user avatar
0 votes
0 answers
24 views

Plug-in dependencies conflict in a windows process

I'm creating plug-in for a main windows process. Those plug-ins are assemblies (dll) which shared the same dependent assemblies but using different version as both plug-ins were not released in the ...
Cédrick Rauzy's user avatar
0 votes
0 answers
18 views

What is parent directory of a process?

In lsof output, it mentions 3 types of directories, cwd, rtd and pd. I understand cwd and rtd. But what is pd aka., parent directory for a process? I tried lsof | grep ' pd ', but I got no output. So ...
Sourav Kannantha B's user avatar
0 votes
1 answer
64 views

Is there a way to programatically obtain the Task Manager "Users" tab?

The Windows Task Manager (taskmgr.exe) has a Users tab that displays a table of user names, session status, total CPU % usage and total memory usage. Is there a way to obtain this data programatically ...
tjlds's user avatar
  • 1
-2 votes
1 answer
113 views

Failed to suspend process in c++ program

private: DWORD SuspendProcess(HANDLE hProcess) { DWORD result = SuspendThread(hProcess); if (result == (DWORD)-1) { // SuspendThread failed return false; } return ...
Roman Soroka's user avatar
0 votes
0 answers
14 views

Make program unkillable or auto-restarting for non-admin users

I installed RescueTime on my PC, and I created a non-admin account where I intend to do most of my work. (The admin account has a very long password which I printed out on a piece of paper, hopefully ...
Jeff Hemmen's user avatar
0 votes
0 answers
78 views

Java - Unable to delete temporary output file for Process on Windows

On Windows, I am creating subprocess via java.lang.ProcessBuilder. On trying to cleanup the process and its standard output log file if my caller function is interrupted, I get error "The process ...
user12345's user avatar
  • 129
0 votes
2 answers
66 views

C++ Synchronization across processes

I have an exe written in C++ whose code has an if/else loop. If loop checks for files from a directory and if its empty, it generates the files in that directory. Else loop (if there are files in ...
user6771624's user avatar
2 votes
1 answer
49 views

Is there a difference between setting FD_CLOEXEC on a file descriptor vs. passing it to posix_spawn_file_actions_addclose?

I have some code that's using posix_spawnp(3) to create a new process. I want to set the child's stdin to read from a certain file descriptor so before the posix_spawnp() call I'm setting up a dup2 ...
pjhsea's user avatar
  • 881

1
2 3 4 5
365