pid Questions

6

I have one question on Linux pid things. How to get pids in one same group? It seems easy to get all pids or pgid with 'ps' command in Linux, but how to get the pids that belong to same group, or i...
Cantlon asked 23/10, 2012 at 19:51

10

Solved

I am writing one shell script and I want to get PID of one process with name as "ABCD". What i did was : process_id=`/bin/ps -fu $USER|grep "ABCD"|awk '{print $2}'` This gets PID of two processe...
Narva asked 6/6, 2013 at 14:42

5

Is there a way to tie a network connection to a PID (process ID) without forking to lsof or netstat? Currently lsof is being used to poll what connections belong which process ID. However ls...
Beata asked 8/5, 2009 at 5:8

2

What is the standard, cross-platform way to detect stale pid file in a Unix environment? Say I would like to kill an old instance of my application, but I certainly don't want to disrupt an unrelat...
Nelsen asked 23/10, 2016 at 17:16

3

Solved

since I updated Mosquitto v2.0.3 on Ubuntu 16.04 the users can't connect to the broker. When I tried to run with /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf it threw the following message....
Roye asked 22/12, 2020 at 19:53

6

When we run a playbook, with verbose output enabled, in the ansible logs we can see something like this: 2016-02-03 12:51:58,235 p=4105 u=root | PLAY RECAP I guess that the p=4105 is the pid of t...
Sift asked 3/2, 2016 at 12:21

39

Solved

Anyone has experienced this problem? Yesterday I still can run my app in simulator but now I cannot run my app since Xcode prints this error in console: error: failed to attach to process ID <I...
Cumulous asked 18/7, 2012 at 6:57

13

Solved

The Redis startup script is supposed to create a pid file at startup, but I've confirmed all the settings I can find, and no pid file is ever created. I installed redis by: $ yum install redis $...
Madoc asked 26/8, 2014 at 21:8

3

I have a program that uses popen() in order to open and read the output from a shell command. The problem is, as far as I can tell, there is no easy way to get the PID of the running process, and h...
Barbur asked 10/11, 2014 at 20:13

5

when I try to boot Ubuntu, it never finishes the boot process because it appears the message "Failed to start PostgreSQL Cluster 10-main." I also get the same message with 9.5-main. But lets focus ...
Kellerman asked 19/2, 2020 at 18:2

8

Solved

I tried google, but found getppid() which gets the parent pid of the current process. I need something like getppid(some_other_pid), is there such a thing? Basically takes the pid of some process ...
Rubberize asked 6/10, 2009 at 13:30

2

Having some difficulties with Linux kernel namespaces today, specifically correlating PIDs inside of a unique PID namespace to those within the global PID namespace I need to be able to do one of ...
Purifoy asked 18/11, 2013 at 0:54

6

Solved

How to kill running processes on GPUs for a specific program (e.g. python) in terminal? For example two processes are running with python in the top picture and kill them to see the bottom picture ...
Touzle asked 5/5, 2018 at 20:1

12

Solved

I am using the program synergy together with an ssh tunnel It works, i just have to open an console an type these two commands: ssh -f -N -L localhost:12345:otherHost:12345 otherUser@OtherHost sy...
Inflow asked 30/11, 2009 at 19:44

4

I'm working on a project where I have a number of PIDs and I have to find out which of these are zombie processes and then kill their parent processes in order to kill the initial zombie process. I...
Plasmosome asked 14/2, 2016 at 23:22

6

Solved

By using "ucbps" command i am able to get all PIDs $ ucbps Userid PID CPU % Mem % FD Used Server Port ========================================================================= 512 5783 2.50 ...
Manuscript asked 3/7, 2013 at 5:47

10

Solved

We would like to check if a specified process is currently running via PHP. We would like to simply supply a PID and see if it is currently executing or not. Does PHP have an internal function th...
Silviasilviculture asked 26/3, 2012 at 14:45

11

Solved

I'm using the following code snippet to determine what process ID my vbscript is running as: On Error Resume Next Dim iMyPID : iMyPID = GetObject("winmgmts:root\cimv2").Get("Win32_Process.Handle='...
Blarney asked 28/11, 2011 at 12:49

15

Solved

Is there a way to check to see if a pid corresponds to a valid process? I'm getting a pid from a different source other than from os.getpid() and I need to check to see if a process with that pid d...
Gustav asked 20/2, 2009 at 4:22

5

I know that I can get the PID for a process by using ps, but how to a find the full path of that process?
Adipose asked 11/2, 2013 at 4:29

8

Solved

I've just tried installing MySQL using homebrew (on Mac OS X 10.6), but I've run across an issue at the first hurdle. When trying to manually start the server (mysql.server start), I get the follow...
Encephalic asked 14/12, 2010 at 22:17

4

I recently posted a question asking if it was possible to prevent PID's from being re-used. So far the answer appears to be no. (Which is fine.) However, the user Diego Torres Milano added an ans...
Garey asked 2/11, 2016 at 10:28

8

Solved

I have problem with Bash, and I don't know why. Under shell, I enter: echo $$ ## print 2433 (echo $$) ## also print 2433 (./getpid) ## print 2602 Where getpid is a C program to get current pid, li...
Virgy asked 11/1, 2014 at 14:57

1

I want to find a way to get the ppid of a specific pid only using C low-level function. I know there is a way with bash commands, like "ps" etc, but I want to do it only in C language.
Caseous asked 8/9, 2022 at 12:26

9

Solved

I start a background process from my shell script, and I would like to kill this process when my script finishes. How to get the PID of this process from my shell script? As far as I can see varia...
Showplace asked 15/12, 2009 at 16:24

© 2022 - 2025 — McMap. All rights reserved.