Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 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 ...
ElToro1966's user avatar
0 votes
0 answers
144 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 ...
King David's user avatar
0 votes
1 answer
692 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
468 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
0 votes
1 answer
565 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 ...
ceremcem's user avatar
  • 635
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?
Ali's user avatar
  • 15
1 vote
2 answers
399 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 ...
Nisba's user avatar
  • 183
0 votes
0 answers
105 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: ...
HP_perfect's user avatar
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 ...
Dee's user avatar
  • 1
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.
hdf's user avatar
  • 245
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 ...
user3346931'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
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 ...
David Coch's user avatar
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 ...
code_fodder's user avatar
  • 1,577
0 votes
2 answers
731 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: ...
zer0w1re's user avatar

15 30 50 per page