All Questions
33
questions
0
votes
0
answers
28
views
Is it possible to create a non-forking vnc service?
I followed this article to create a vnc service. The service is forking and uses a PID-file. My version of the service description — [email protected] — looks like this:
[Unit]
Description=Start ...
0
votes
0
answers
149
views
RHEL + kill -9 not really killing the process
We have around 85 running process with lshw
Since these process increased the CPU load average ,
We tryed to kill them with kill -9 but without success
root 3275 0.0 0.0 131720 8992 ? D ...
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]...
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 ...
0
votes
1
answer
583
views
Is it possible to retrieve the PID number of a specific chromium tab?
I'm trying to introduce a solution to a problem and in order to achieve that, I need to get the PID number of the Chromium process that displays a specific webpage (ie. http://localhost:4025).
Is it ...
0
votes
0
answers
42
views
How to open 100 file with one proccess?
I know the output of ulimit -S -n is the number of fd that a process can handle or create. How can I open files more than that number to reach the limit of my system with one process ID?
1
vote
2
answers
403
views
Portable way to find all PIDs by cmdline
I want to find the PID of all processes which were run by a cmdline call which contains a certain string my_exec.
For instance, with macOS or Ubuntu, open a terminal and run /bin/bash, and then in ...
0
votes
0
answers
106
views
How can I find the PID for software where the name of the software is different from the executable?
I run "Videos" software from the Dash in Ubuntu. After some minutes the software freezes.
I've tried searching for the PID of the software to kill it, but I can't find any result with these commands:
...
0
votes
0
answers
1k
views
how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?
I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for ...
0
votes
0
answers
860
views
How do I figure out a root cause of a zombie process?
A process on a production linux server became a zombie with unknown reason. I wonder if there is a certain methodology to find out what causes it.
8
votes
1
answer
14k
views
How do I determine the PID of my python program if there is more then one python program running?
I have two python programs running on my system, say they are called program x and program y.
I want to get the pid of program y, but not x for my bash script. When using pgrep python, I get the pid ...
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:...
8
votes
1
answer
12k
views
How to find out who (what process) is starting another process?
So no matter how many times I kill exim4 it immediately comes back to life. I have stopped the service and everything but something is bringing it back to life and using it for spamming.
How do I ...
1
vote
1
answer
796
views
PID of background task is different to the listed task PID using ps
Note: I h ave moved this to stack-overflow, I think that is the right place: here
I have a strange issue, I can't quite get my head around. What I do is run a function called fn_rundumper which ...
0
votes
2
answers
739
views
How to view the calling script on Linux [closed]
I am trying to write a script to help with computer security. I am trying to look for open ports, find the PID, and find what called it.
I have it working, where my output looks something like this:
...
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 ....
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?
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 ...
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....
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?
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 ...
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
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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)...
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 ...