Skip to main content
Filter by
Sorted by
Tagged with
4 votes
2 answers
155 views

I am writing a program that will periodically scan all processes on a machine. I want to cache as much as possible to avoid any system load. I can list all available pids on a machine with ls /proc/[0-...
KamilCuk's user avatar
  • 146k
0 votes
1 answer
105 views

In shell scripting, or interactive use, I sometimes want to get the process id of a command I run, and pass that process id to the command on its own command line. Imagine: % /bin/echo I am process $...
Ed Avis's user avatar
  • 1,622
0 votes
0 answers
48 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
1 vote
0 answers
24 views

Looking at the psutil's implementation of Process.children(), I see the following code: # if child happens to be older than its parent # (self) it means child's PID has been reused intime = self....
Max's user avatar
  • 67
1 vote
0 answers
37 views

I’m using GNU screen to run a service, but when I stop the session, the processes running inside it are not always terminated properly. This results in ports remaining occupied and prevents the ...
JamesStandbridge's user avatar
0 votes
0 answers
41 views

While running iOS build for debug getting Pid issue ...This pid numbers keep getting change and build keep failing . How to resolved this , Thanks in Adv Selected dev provision profile and trying to ...
iosDev's user avatar
  • 604
-2 votes
1 answer
132 views

Open 3 terminals, which I'll call A, B, and C, and execute the following: socat TCP-LISTEN:12345,fork - in A, pidof socat in B, socat TCP-CONNECT:localhost:12345 - in C, pidof socat again in B. Step ...
Enlico's user avatar
  • 30.2k
3 votes
1 answer
111 views

I'm working on a C program that creates three processes to read and process a file: Process 1 reads the file line by line Process 2 counts the lines Process 3 (main process) maintains the final ...
Kris's user avatar
  • 59
0 votes
0 answers
14 views

I am trying to determine the saturation of Integral Term. The goal is to determine the maximum value of integral with the maximum output power. Output power is controlles by how many cycle we send to ...
Albion Qovanaj's user avatar
0 votes
0 answers
16 views

So I work for a company and we have just recently purchased an ROV. The controller the ROV company gave us upon purchase isnt fit for use and i want to use a different one, preferably a flight stick. ...
jack innes's user avatar
1 vote
1 answer
44 views

I faced the following problem. I need to write a system call in the Minix2(minix204) operating system that would return the pid of the process with the biggest number of children. I managed to write ...
Ivashchenko Matvii's user avatar
0 votes
0 answers
40 views

I'm working on building a custom command line interpreter in C, and I'm running into issues with process group management and terminal control when executing commands. Below is the main code I'm using:...
MwahMallah's user avatar
3 votes
1 answer
105 views

I can't understand the way zsh 5.9 behaves when assigning $! to an array: unset a b c sleep 3 & a=$! b[1]=$! c[1]=${!} typeset -p a b c output: typeset a=21391 typeset -a b=( '$!' ) typeset -a ...
Fravadona's user avatar
  • 17.6k
0 votes
1 answer
50 views

If I'm getting it right, is it possible in the Linux pthread C API to use robust mutexes, that can be shared across processes (by placing them in shared memory), and that allows you to acquire the ...
Alessandro Bertulli's user avatar
-2 votes
3 answers
397 views

Let's say we have the following: pid_t pid; pid = fork(); if(pid == 0) { if(fork()) printf("A"); else printf("B"); printf("C"); } else { ...
RhoThanos's user avatar
0 votes
1 answer
78 views

I need, for a given thread group, to get each of its member threads sequential index to store some data about each thread from inside of the kernel, I have access to task_struct. Something like "...
blonded04's user avatar
  • 531
2 votes
1 answer
76 views

I am working with a Debian (Linux like) OS writing code in c. I am a running process (let's call it "A") which needs to launch an executable program AND to get its PID when the new process &...
Guille's user avatar
  • 472
1 vote
0 answers
55 views

In Linux, I have just simple test code to testing process made once or twice. when I execute my program program is just sleep 2seconds and print something inside for loop sudo ./test & the ...
Kundera's user avatar
  • 315
1 vote
0 answers
49 views

I have a python script "A" that uses subprocess.Popen to launch a gnome-terminal and then executes a different python script "B" in there. I am stuck with retrieving the pid for ...
blackbeard's user avatar
0 votes
1 answer
77 views

i've the next issue: i'm running through an url a php script, this script makes a query to mongoDb and brings a loooot of registers, this takes almost an hour to finish. To this point everything goes ...
lady Marian's user avatar
1 vote
0 answers
138 views

I'm working with Unix signal handling and trying to understand the mechanism behind signal propagation to process groups, especially in the context of Linux namespaces. When I run cat /proc/[pid]/...
Shivam Jha's user avatar
0 votes
1 answer
702 views

I'm currently working on a feature in our TypeORM and PostgreSQL setup where I need to handle cancellation of long-running and time-consuming requests. For this, I believe I need to track the Process ...
Ann's user avatar
  • 3
0 votes
0 answers
82 views

I have a file saved to desktop. I can get the process ID of the file using the python code below. However, in my case, there user might need to select a particular application instance from a list of ...
aytas31's user avatar
  • 31
-1 votes
1 answer
668 views

I'm using AWS linux / RHEL and I am trying to identify & remove zombie PIDs that are hogging ports to ensure clean start/stopping of application services. man lsof -i : will give me the "...
Marc Leprince's user avatar
2 votes
2 answers
474 views

import 'dart:io' ... print(pid); This code print the pid of my Flutter application. But I want to get the other apps' pid when I switch on that app. Suppose, I am now on skype app. So this print(pid) ...
Sharif Ahamed's user avatar

1
2 3 4 5
35