Skip to main content

All Questions

Tagged with
2 votes
1 answer
4k views

How Windows/Linux assign PID to processes?

Q1 : I want to know how Windows/Linux assign a PID to a process when that process began? Is it a delimited random number? or it is fixed for a file on a compute? does it have a special algorithm? and ....
TheGoodUser's user avatar
  • 1,195
4 votes
2 answers
8k views

What process is the parent of the 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?
Novice's user avatar
  • 163
0 votes
1 answer
128 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 ...
ehime's user avatar
  • 241
1 vote
1 answer
1k 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 /var/run/test....
mafrasi2's user avatar
  • 113
358 votes
11 answers
781k 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?
AndreaNobili's user avatar
  • 7,201
1 vote
1 answer
240 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 ...
milks's user avatar
  • 113
0 votes
0 answers
616 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
agz's user avatar
  • 8,328
0 votes
1 answer
985 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 ...
user195661's user avatar
36 votes
6 answers
140k views

How to find PID's user name in Linux?

Can you help me to find the PID's user name? Sometimes my server has high load. When I run top -c, I cannot even find the owner of a process which is causing load on the server.
Ranjithkumar T's user avatar
2 votes
1 answer
2k 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 ...
Daniel Kessler's user avatar
9 votes
3 answers
17k 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 ...
Reiik's user avatar
  • 103
28 votes
2 answers
18k 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 ...
Murko's user avatar
  • 385
2 votes
5 answers
7k 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 ...
Josef's user avatar
  • 1,345
1 vote
1 answer
557 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 (Detached)...
user avatar
0 votes
2 answers
2k 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 ...
Rythmic's user avatar
  • 103

15 30 50 per page