Skip to main content

All Questions

Tagged with
0 votes
1 answer
718 views

How to get PID of python3 working program

I want to write a program on bash that will restart my script once every some time. The program runs in an infinite loop and launch like this: Python3 main.py So to restart it, I need to do Kill [pid]...
ASDORDSAUSER's user avatar
0 votes
1 answer
474 views

How can i dump the contents of a file that was opened with nano in a running process? (Linux)

I have run the command ps -ef and found the following : UID PID PPID C STIME TTY TIME CMD root 1 0 0 12:30 ? 00:00:00 socat tcp-l:1024,reuseaddr,f root ...
Astral Wanderer's user avatar
20 votes
2 answers
120k views

Restart process on linux by its pidn number with kill command, how?

Well, I want to be able to restart processes on linux and so I looked into kill manpages for that. Apparently kill -l would list all the signals I could send to a process to do what I need, which are:...
Ruben Marrero's user avatar
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
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
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
123 votes
10 answers
279k 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
Vi.'s user avatar
  • 17.3k