PID (Process IDentifier) is the number that identifies a process running on a operational system.

learn more… | top users | synonyms

1
vote
1answer
22 views

Shell, subshell, source, background process, PID == confusion

I am trying to get my mind straight as to how all these things are put together. For example with this script: #!/bin/bash . script1 ./script2 . script3 & ./script4 & sleep 5 How do the ...
0
votes
1answer
43 views

PID not shown under Services in the Task Manager on Windows 8

I'm trying to run a program that defaults to port 9000 but there is an unknown source using that port. I found the PID by using, netstat -aon | more and went to the task managers service tab ...
1
vote
1answer
46 views

Init process in linux

Who or Which process is the parent of INIT process? INIT is the first process which is initialized by the Kernel, kernel is not one process, So what is its parent process id value?
0
votes
2answers
56 views

Getting pid of process not listed in ps -ef

I know there is a process called blt.pl running on a particular machine but not quite sure which user is running it. i have tried ps -ef | grep -i blt.pl but obviously it's not finding it. Is there ...
0
votes
0answers
36 views

Command to get associated threads for pid in OSX

In Linux I can use one of the following ps -p pid -L -o pid,tid,%cpu,%mem ps -C command -L -o pid,tid %cpu,%mem What is the equivalent command for OS X ?.
0
votes
0answers
27 views

How do I determine whether a program other than bash is running in a different pane in tmux, and if so suspend it and return to the shell temporarily?

I am trying to write a bash script to script tmux and do things in every pane in my current window. That I have down, but I'd like to be able to know if another window is running the shell or if I'm ...
1
vote
0answers
327 views

The server quit without updating PID file

I am trying to install MySQL on my Mac w/ Mavericks OS. Whenever I try sudo /usr/local/mysql/support-files/mysql.server start it shows an error The server quit without updating PID file ...
0
votes
1answer
67 views

How to execute a script 20 at a time with different variables at a time in parallel?

I am trying to run 20 files at a time, using warc.sh or a better way to put it is 20 instances of warc.sh at a time with directory contents as the input. I am also trying to watch the PIDs in case bad ...
1
vote
1answer
217 views

Weird start-stop-daemon behaviour?

I have the following script: #!/usr/bin/python3 import sys for s in sys.argv: print(s) Now I execute: sudo start-stop-daemon --start --pidfile /var/run/test.pid --make-pidfile ...
14
votes
1answer
1k views

Does Windows 7 reuse process IDs?

Does Windows 7 reuse process IDs? The reason I ask this question is due to my experience that Windows XP and Linux never seems to generate process IDs higher than 20–30k. However, my Windows 7 ...
0
votes
0answers
1k views

Squid Proxy process not running

Hey community, some days ago my squid crashed. I'm running squid 2.6 STABLE21 on CentOS. The output of the "show squid status" command is just squid dead but pid file exists starting the ...
31
votes
3answers
34k views

If I know the PID number of a process, how can I get its name?

If I have the PID number for a process (on a UNIX machine), how can I find out the name of its associated process? What do I have to do?
0
votes
1answer
519 views

How to start a process with a predefined (in case it is unused) PID?

Is it possible to start/run a process with a predefined PID? In Linux or in OS X (or BSD)?
0
votes
1answer
144 views

Red5 on Debian, output PID

I'm fumbling my way through with this one, as a novice with all things linux so please be patient :) I would like to output the process ID of a program to a file. From my readings this is generally ...
2
votes
2answers
5k views

Run a process and return its PID (as CHP.EXE) for a batch file

I'm looking for something like chp.exe, it can run a command and return its pid. I can not use CHP.EXE because it seems to be reported as infected file in some antiviruses. Thanks
0
votes
0answers
27 views

Is there a process with pid 0 linux? [duplicate]

Is there a process with pid 0 linux? Also is there any negative pids? This is just out of curiosity :D
21
votes
1answer
710 views

What processes, if any, exist between PIDs 0 and 4 on Windows 7?

Just out of curiosity what are the processes between 0 and 4, and also between 4 and 200 something.
0
votes
1answer
258 views

hide pid when a process is launched in background

So I put this command vncconfig -iconic &, this causes vncconfig window to launch and terminal will display like [1] 13488. I want to hide this pid info. That is, when we put the command, only ...
2
votes
0answers
116 views

Install perl module from rpm file

I have a perl issue and obviously I'm not a perl expert. I can not use CPAN. I've installed File::Pid using a rpm, or I tried. I downloaded perl-File-Pid-1.01-3.el5.noarch.rpm (and the ...
1
vote
2answers
481 views

Interfacing strace with Process Name instead of PID

How do I implement a wrapper script pstrace in bash that changes the interface of [sudo] strace -c -p [PID] to [sudo] pstrace -c -p [PROCESS-NAME] similar to how killall [PROCESS-NAME] is ...
1
vote
2answers
3k views

How to find PID's user name in linux

Can you help me to find the PID's user name, Some time my server got high load. When i top -c, I cannot even find the PID's user name who / which is causing load on the server.
2
votes
1answer
301 views

Determine display or VNC session based on PID

I frequently VNC into a server where we run many concurrent computationally intensive matlab processes. Sometimes, one of my processes misbehave, which I can see from top, but I have a hard time ...
5
votes
3answers
603 views

Is a process PID guaranteed to stay the same as long as the process doesn't die?

I'm doing some simulation work with Linux, and the code I'm working on right now only works under the assumption that, once a process has been assigned a PID by the kernel, that PID will remain the ...
7
votes
1answer
3k views

Linux - alternative places where to store pid file instead of /var/run

As written in the title, where should I let the init script write the pid file? are there any standard paths I should choose instead of the /var/run ? Could /tmp be a good place where to store it or ...
8
votes
5answers
13k views

How to get the pid of a running process using a single command that parse the output of ps?

I am looking for a single line that does return the pid of a running process. Currently I have: ps -A -o pid,cmd|grep xxx|head -n 1 And this returns the fist pid, command. I need only the first ...
1
vote
4answers
2k views

Get PID of process started in screen by su

i have a simple script that starts quassel-core in a screen session as different user! The script is: #!/bin/sh su ircc -c 'screen -dmS quassel /home/ircc/quassel/quassel-core' I want to start and ...
17
votes
5answers
10k views

Excluding grep from process list

I have cobbled together a command to return the process ID of a running daemon: ps aux | grep daemon_name | awk "{ print \$2 }" It works perfectly and returns the PID, but it also returns a second ...
2
votes
1answer
2k views

Where can I find my (current shell process') PID?

I'm on OS X using ZSH (have lots of homebrew stuff, too). I'd like to know the PID of my current terminal. (I'm learning more about process management on *nix systems, pstree and the like, and so ...
1
vote
1answer
995 views

How do I locate the PID code for an ASUS laptop webcam?

I can't look in the Device Manager for the PID code because the camera has disappeared from the device list. The driver still shows up in programs list, but the camera doesn't work. Where else can I ...
2
votes
2answers
1k views

Show PID of process just launched in ZSH

Can I show the PID of a process that I just launched, ideally at the end of the line of the command? Example: root in ~: mysqld .................. [PID 34567] 12121 mysql-logs start to come in... ...
1
vote
1answer
255 views

Reattaching to screen - Linux

We run several screen instances from one box, eg. : 27185.pts-53.CentOS-57-64-minimal (Detached) 27209.pts-53.CentOS-57-64-minimal (Detached) 27281.pts-53.CentOS-57-64-minimal ...
0
votes
2answers
1k views

How can I stop jenkins.pid in fedora15?

I have jenkins running, but I need to stop it. in /var/run I have jenkins.pid which is what the standard jenkins script uses to stop jenkins. The jenkins script uses start-stop-daemon which doesn't ...
12
votes
4answers
46k views

PID:4 using Port 80

I was trying to install Zend Server CE on my computer but when I got to the point were I need to choose the port for my Web Server it says: "Web Server Port: 80 Occupied". So I decided to check what ...
2
votes
0answers
257 views

Routing packets to different available networks using process' pid / uid

I need to route packets from some processes(unique pids/uids) to desired network connection. So, Suppose we have 4 processes with pids 10, 11, 12, 13 respectively; and we have two network connections ...
3
votes
1answer
1k views

Windows analog of $1 (PID of the last started process)

How to get on Windows PID of the last started process using WScript.Shell or similar? I know how to start a process and get its PID: Set oExec = WshShell.Exec( program ) Set pid = oExec.ProcessID ...
6
votes
3answers
4k views

How to kill one tab of google chrome using pid

I want to close one tab of chrome. I tried killing the pid of the tab, but the tab doesn't close instead says "Aw, Snap! Something went wrong while displaying this webpage. To continue, reload or go ...
3
votes
1answer
5k views

Blink/Flash Text -Shell Script

I have a bash script where I'm zipping some files. This process sometimes takes time depending on the file sizes. I want to get the pid of this command and display a flashing message "Zipping..." ...
1
vote
1answer
112 views

How to identify the process which has loaded a certain file

I have certain file in the disk which I am unable to delete, as it mentions that it's being used by a certain process. How do I identify the process which is using this file?
8
votes
3answers
14k views

PID number in Task Manager can't be found

i tried running netstat -o to check what are the connections which are established. I saw two and they have PID numbers. When I checked it in my Task Manager, I couldn't find those PID numbers. Is ...
2
votes
4answers
1k views

Loop: Start program and kill after time out

for debugging reasons I want to spot one of those bugs showing up just occasionally. Therefore I want to code a while loop in the shell starting the program (if it will segfault => that's what I ...
21
votes
6answers
42k views

How to get parent PID of a given process in GNU/Linux from command line?

Resolved before asked: cat /proc/1111/status | grep PPid
2
votes
1answer
4k views

After forced quit, “killall Finder” says “No matching processes…” but PID still exists?

Here's one for ya. Upon a forced quit of the Finder with unsuccessful relaunch, "killall Finder" in terminal returns: "No matching processes belonging to you were found" Oddly enough, the PID for ...
0
votes
3answers
693 views

How can I check the PID of a X-server in another virtual terminal?

I am trying to open a program in a naked X-server on a different virtual terminal. I am using ubuntu 9.10. The command I'm using is this. openvt -f -s -- `X :2 & '/path/to/program' -display :2`; ...
5
votes
3answers
1k views

Where does the command “top” get its information from in linux?

Which files does the linux command "top" read from in order to build its table of data? Specifically, I'd like to be able to find the data for the "command" column based off of a PID.