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

learn more… | top users | synonyms (1)

1
vote
3answers
48 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
56 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
67 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
56 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
65 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
111 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
127 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
74 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
44 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
36 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
300 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
15 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
94 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
53 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
65 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
25 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
81 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
123 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
41 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
44 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
59 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
66 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
35 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
106 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
48 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
43 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
68 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
51 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 ...
1
vote
1answer
82 views

Kill a running shell script, and kill all process running within it

I have a shell script running in the background, which runs 5 different jobs. When I run the shell script all 5 jobs start running in order. When I kill this shell, whichever process is running, will ...
1
vote
1answer
116 views

cpu usage is 100% but top doesn't show any process using it

First of all, I forgot to save the process list. I had to reboot the server so I can't give much information. I have a small VPS. The cpu usage was 100% in both top and in the control panel graphs, ...
1
vote
0answers
11 views

What is the equivalent of pstop on OSX?

Is there an equivalent of pstop in OSX? How is pstop different to kill?
4
votes
2answers
97 views

From bash, spawn two processes and exit both if either sibling exits

From bash, I am spawning two processes. These two processes depend on each other. I want both to exit if either one dies. What is the cleanest way to do that? Currently I have the following: # start ...
1
vote
1answer
144 views

Weblogic process just killed suddenly on redhat linux

One of the process on my WAS killed at dawn. 6 process run on this server. But only one process just killed. I don't know how to fix it. This is Weblogic last log that before process killed. ...
0
votes
1answer
38 views

What happens to a process handle when the process has stopped?

If I have a handle of a process and that process has stopped, Do I need to close the handle? Can I use the handle to rerun the process? Can I use the handle to find out information about the ...
4
votes
1answer
101 views

The sum of % in the CPU column doesn't match the total CPU % row [duplicate]

I don't understand why the sum of % in the cpu column in top doesn't match the total CPU % row: Text version with slightly different values: ubuntu@server:~$ top top - 23:20:21 up 5:18, 3 users, ...
0
votes
3answers
52 views

Process in Unix

When I log into my unix terminal and just do ps: bash-4.3$ ps PID TTY TIME CMD 7 pts/0 00:00:00 sh 16 pts/0 00:00:00 bash 17 pts/0 00:00:00 ps I know bash process is ...
5
votes
2answers
76 views

Suspend process without killing it

So I've got a persistent program running in the background. Killing it just causes it to restart with a different PID. I'd like to suspend it (put it to sleep without actually killing it). Does kill ...
2
votes
1answer
40 views

When is a port considered being used?

I am getting port in use cannot bind on process restarts. I am trying to find out when a port is considered being used? Is it only when in LISTEN mode? Can it also be if a connection is open to the ...
1
vote
1answer
58 views

How do you tell what the return code of a process is when it exits and where is the value usually documented?

If a process runs and exits it returns a non-zero status (personnaly I prefer the term return code); or even a zero status I know that the value is there (mostly because I've done C++ programming and ...
0
votes
1answer
43 views

Downsides of processes with high virtual size but low RAM and GPU memory use

I have noticed that some of my processes take a lot of virtual size in my computer. I understand that the virtual size of a process is the sum of memory it is actually using, memory it has mapped into ...
1
vote
4answers
80 views

Why does killall command kill only one instance of the process?

Sometimes I need to kill Google Chrome (of which I have 2 windows/instances opened). Both instances are not in incognito mode. What I do is: (on Debian 8) killall chrome && killall chrome ...
0
votes
1answer
26 views

Get PID of scheduled job (using at)?

Say I want to schdule this job to be run at later time MYPROGRAM > output.out 2> error.err | at 02:00 PM Mon How can I attain its PID? surly using: echo $! will not work?
5
votes
1answer
62 views

Is forcing an application to release some the allocated memory possible?

Ever since I came back to Firefox a year or so ago I have been facing the same issue over and over again - the browser just keeps eating up my memory. The problem arises from (maybe the incorrect ...
4
votes
2answers
203 views

What happends when sending SIGKILL to a Zombie Process in Linux?

In Linux, when a child process terminates and it's parent has not yet waited on it, it becomes a zombie process. The child's exit code is stored in the pid descriptor. If a SIGKILL is sent to the ...
0
votes
1answer
53 views

Schedule a job to run in the background ( one time task scheduling using at )

Is it possible to request for a job to be run at a later specifed time in the background? This is what I have so far, nohup nice MY_PROGRAM > foo.out 2> foo.err < /dev/null | at 05:23 PM ...
1
vote
1answer
33 views

what happens to remotely run process when remote host disconnects?

Say, I ssh into a remote host, initiate few processes on it and disconnect before the processes terminate. What happens to the processes? Do they continue?
3
votes
1answer
73 views

sigint not being propagated to background child process

I need to send SIGINT to terminate a process gracefully but I can't. This is a sample, because the environment in which the execution occurs is 'unknown' (a bash script in travis.com) I managed to ...
0
votes
1answer
35 views

Linux applications, user and system

I was wondering if there was any CLI command that would allow me to see what applications are being run by the current user, but ones that are not system commands. for example if I run lsof it will ...