A process is an instance of a computer program that is being executed.

learn more… | top users | synonyms (1)

1
vote
2answers
43 views

Who is stealing my pids?

I noticed that my Debian Jessie system is using many pids, even when the system is (should be) largely idle. The following shows that more or less 270 pids are used per 10s, while the number of active ...
1
vote
1answer
52 views

What are these processes and why can't I kill them?

(On OS X 10.11.3) I'm having a problem starting a java process that needs to listen on port 8040. Getting a BindException. So seems like somebody else is already listening on it. A quick check ...
5
votes
3answers
97 views

Finding number of child processes of a particular process

I have a Python script that spawns a few subprocesses but never more than n at a time. I want to write a shell script to confirm that it has no more than n subprocesses at any given time, but also ...
1
vote
6answers
36 views

Is there any way to find a process (or at least the existence of a process) by working directory?

I know that you can find the working directory of a process a few different ways, but is there any way to do the reverse? I have some server applications written in node that are unfortunately tricky ...
1
vote
3answers
52 views

How to find an ssh session a process was started from

How can I find a process which was started from some ssh session. For instance, I gave same ssh cridentials (aka. userzxc/passwordzxc) for my several friends which IPs i already know. My goal is to ...
1
vote
4answers
76 views

<defunct> processes remain behind

I have an embedded system that was going non-responsive after running for several hours. After investigating I found that the system kept growing a list of <defunct> processes. Running ps axl ...
0
votes
1answer
35 views

Task running even after killing it

I am running kibana service in centos using nginx. kibana deployment - i followed this . When I check Kibana status i am getting as not running, But when i see it using ps -eaf | grep kibana i ...
2
votes
2answers
61 views

How to get all processes, currently running in kernel mode?

How can I list processes that are busy in a system call? Is there a way to find it out with the command top? I couldn't find any appropriate option in the man pages.
2
votes
1answer
32 views

Is there any command that limits the use of cpu resources by percentage?

So far I've been using nice -n 10, but that's just sets the priority of the command I want to run low, but if there's no other process running at that time the command will take all the remaining cpu ...
0
votes
1answer
43 views

How can I pause or freeze a running process? [duplicate]

I would like to pause/freeze a process in time; how can I do that? Not duplicate because kill -STOP <PID> has caused applications to crash when I've used it.
1
vote
1answer
47 views

How do I connect a USB mass storage device that has a custom pid and vid?

I have a device, custom mp3 player, that the pid and vid show up as a011:a011. dmesg usb 1-1.1: new high-speed USB device number 4 using ehci-pci usb 1-1.1: New USB device found, idVendor=a011, ...
1
vote
1answer
54 views

Script to ensure that only one instance of Oracle is running

I'm an Oracle DBA and need help/suggestion to understand a weird situation that came up today. One of our DBA job failing with saying 'Already its running' from Tivoli scheduler. However that is not ...
1
vote
1answer
38 views

How to handle broken link after file deletion.in /proc/<pid>/fd directory?

A process is creating huge number of log files and also deleting it. Many of those deleted files are having broken links in the /proc/pid/fd directory. Do these file handles need to be closed by ...
1
vote
2answers
44 views

How to detect which process filled up disk space

During weekend my Debian based proxy crashed due to insufficient free space. After reboot it was fine again, so on monday I went hunting for logs and/or explanations for saturday hang but I couldn't ...
1
vote
1answer
422 views

List of running processes

There is a top command to show running processes. I would like to print sorted list of unique values in field COMMAND. There is my solution for this task $ top -b -n 1 | tail -n+8 | awk '{print ...
3
votes
0answers
36 views

What process state(s) is counted into cpu time?

Two observations of mine (correct me if wrong): In the output of time for timing a process, 'User' and 'Sys' come from wait (2) or times (2), depending on the particular system. In Linux ...
1
vote
1answer
69 views

OOM-kill a process from user with highest memory consumption?

I have a multi-user system, where active users should get a fair share of the available memory. Can I set up Linux to kill a process of the user with the highest total memory consumption? This will ...
3
votes
1answer
55 views

Identify files/processes that prevent remounting read-only

My system runs Debian Testing, and / is generally mounted as read-only. The main problem with this is, every time I install something or update the system, I cannot remount the filesystem (I get the ...
0
votes
1answer
488 views

Maltego stuck in Loading Modules

I'm using Kali Linux 2016 on Vmware 12 player. I'm trying to run maltego(first time) and it's stuck on loading modules. any suggestions?
1
vote
1answer
49 views

Why is uninterruptible sleep indicated by 'D'?

From "man ps": R = Running or Runnable S = interruptable Sleep T = sTopped Z = Zombie D = uninterruptible sleep (usually IO) Where does this D come from?
1
vote
3answers
53 views

How shell processes the content of command line in order to execute?

How shell processes the content of command line in order to execute? Command first and then option and arguments. Dividing command line into segments. Processes from beginning to the end.
3
votes
2answers
68 views

How can I kill process by specific name and exclude root processes

Not a long time ago we found out about pkill and we had in mind to start using it in a setuid (for root) script for global clean-up of processes. This could save us lots of stupid maintenance where ...
1
vote
1answer
84 views

How to create an orphan process without terminating the parent shell?

In a bash shell, to make nohup mycommand & an orphan process, I close the bash shell after running the command. Is it possible to do without terminating the parent shell? I would like to know if ...
1
vote
1answer
74 views

Are kernel threads processes and daemons?

From Mauerer's Linux Kernel Architecture, Kernel threads are processes started directly by the kernel itself. They delegate a kernel function to a separate process and execute it there in ...
1
vote
2answers
79 views

Script to send email alert only when process change state

Below script checks whether MStrsvr process is running or not . The issue I'm facing is if i schedule a cron tab to run this script for every 1 hour it will throw email alert every 1hr that "MSTRSvr ...
3
votes
2answers
113 views

How can I determine if a process is running unseen in terminal?

For ex - if I enter ping one.com the process will keep running - if I want to stop that process, I can type Ctrl C which if I'm not mistaken, will kill the process completely. If instead, I stop it ...
1
vote
0answers
131 views

What is the command erepc? Is this malware?

I noticed that my system was running slower than normal so I ran a top command. Hogging a ton of my CPU was a process called erepc that I can find no information on. PID USER PR NI VIRT ...
0
votes
1answer
99 views

What are the differences between KILL, SUSPEND and TERMINATE of a process

What are the differences between Kill a process Suspend a process Terminate a process In which situations each methods uses practically?
1
vote
1answer
45 views

Most elegant way to terminate straced program

I want to capture a certain thing with strace and then immediately exit. This way the program stays alive: strace ... program 2>&1 | grep --line-buffered ... | read line. Is there a simple way ...
1
vote
1answer
42 views

Process Flag 1: Forked but didn't exec (use case?)

In the man page for ps, it lists process flag 1 as "process forked but didn't exec". What would be a common use case/situation for a process to be in this state?
3
votes
1answer
328 views

Process not closing when stdin is closed

I am starting a process with a program. I expect the process to terminate when the program does, since it loses its stdin. I terminated the program, then went to the proc/pid/fd for the process, ...
1
vote
0answers
17 views

Starting isolated namespace inside network namespace

I've managed to create two network namespaces (ns1 and ns2) and connect them via veth connection. They can ping each other fine, and even ssh one into another (provided I started sshd). What I would ...
1
vote
2answers
139 views

Differences between system processes, and user processes, kernel control paths and kernel thread

My understanding is that a process always runs in user mode and uses user space only, and a kernel always runs in kernel mode and uses kernel space only. But I feel that I might not be correct, ...
1
vote
3answers
66 views

On `fork`, children processes, and “subshells”

This post is basically a follow-up to an earlier question of mine. From the answer to that question I realized that not only I don't quite understand the whole concept of a "subshell", but more ...
0
votes
2answers
115 views

Service vs Process?

chkconfig has five distinct functions: adding new services for management, removing services from management, listing the current startup information for services, changing the startup ...
2
votes
1answer
26 views

Embedding a binary and exec it, feasibility

I have a binary daemon that depends on another binary daemon at runtime to exist; I don't like this arrangement. (My code works on both OS X and Linux I say linux because I believe its okay to only ...
4
votes
1answer
90 views

bash does not exit on abnormal exit of child process due to signal

I try really hard to understand what I am doing wrong and why? I have a launch.sh script which launches process.sh. launch.sh #!/bin/bash while true; do ./process.sh done process.sh ...
1
vote
0answers
20 views

killing subprocesses and traps

I have the following two scripts which simulate some work: start.sh simply launches 2 (mpi) processes with script mpiproc.sh. start.sh #!/bin/bash function trap_with_arg() { func="$1" ; shift ...
4
votes
2answers
147 views

Hook action on process creation

Is it possible to hook a script execution on each process creation? Essentially the equivalent of inotifywait to monitor disk activity but applied to the process table. It would be to allow to do an ...
1
vote
2answers
50 views

What is the default memory allocation for shell process by linux

What is the default memory allocation for shell process by Linux , i mean is there any upper limit for shell process or any process.
1
vote
1answer
55 views

Possible to identify defunct process from pgrep

I am using pgrep for a bunch of things, however I can't get pgrep to list if the process is defunct. Running ps adds to the end of the item <defunct> but pgrep does not, is there anyway to do ...
1
vote
0answers
21 views

Pipe output of process that's already running

I've got a process that spews out a lot of output, and it's going to be running for the next hour. I forgot to pipe its output through my awk script before I started running it. Now my terminal is ...
4
votes
3answers
63 views

How do I get the first branch PID of an application in pstree command?

I want to get PPID of chromium browser. When I launch chromium-browser it launches many child processes with the same name. For example: $ pidof /usr/lib/chromium-browser/chromium-browser 8963 ...
1
vote
2answers
72 views

How do I kill a process given its “command”?

I have a process called "P1", right now the way I kill the process is: $ ps aux | grep "P1" " Now it returns two processes related to "P1": one is the actual P1 process I want to kill, the other one ...
0
votes
1answer
36 views

Kill command also kills other process

I have a very simple script, let's call it foo.sh. It's this: #!/bin/sh sxhkd & panel & where panel is a script (I won't post it here because it's very long and I don't think it would be ...
1
vote
3answers
113 views

Process scheduling data on linux

I am doing a project on OS and require the process scheduling data for an operating system. The data has to include the list of all processes in short-term-scheduler and long-term-scheduler along with ...
1
vote
2answers
52 views

How to prevent a process from hanging the computer?

A process can cause the computer to "freeze" for example when exhausting CPU or swap. Is there a way to prevent this from happening? For example by setting the max %CPU or IO MB/s that can be granted ...
-2
votes
2answers
61 views

linux on aix dont work pgrep -lf ora_pmon

pgrep -lf ora_pmon ksh: pgrep: not found. somebody know who to change the code without pgrep this is the result on another Os pgrep -lf ora_pmon 4104 ora_pmon_dbpicsr 5092 ora_pmon_dbpiss2r 14393 ...
1
vote
2answers
74 views

How to “track” newly created processes?

I know that with ps I can see the list or tree of the current processes running in the system. But what I want to achieve is to "follow" the new processes that are created when using the computer. As ...
1
vote
0answers
54 views

RAM not used by process? Then who uses it? [closed]

I don't understand who uses my RAM. I can see clearly that it's used, but I have no ideea who uses it. Do you have any ideea what could be wrong here? I'm experiencing random spikes of high memory ...