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...
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....
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...
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
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...
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 ...
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...
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 ...
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...
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='...
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...
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?
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...
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...
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...
1
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
1 Next >
© 2022 - 2025 — McMap. All rights reserved.