A process is an instance of a computer program that is being executed.
0
votes
0answers
5 views
Signal is always caught by parent process first
Consider the following piece of code running under Solaris 11.3 (a simplified version of system(3C)):
int main(int argc, char **argv) {
pid_t pid = fork();
pid_t w;
int status;
...
1
vote
1answer
40 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
13 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
29 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
88 views
List of running processes
There is a top command to show running processes. I would like to print sorted list of values in field COMMAND. There is my solution for this task
$ top -b -n 1 | tail -n+8 | awk '{print $12}' | cut ...
3
votes
0answers
28 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
38 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
45 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
0answers
106 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
42 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
41 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
43 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
30 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
28 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
41 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
104 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
122 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
57 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
21 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
246 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
12 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
57 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
36 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
28 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
22 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
48 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
16 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
95 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
35 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
24 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
51 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
59 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
33 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
87 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
35 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
1answer
22 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
52 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
46 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 ...
0
votes
1answer
57 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
87 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
8 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
60 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
83 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
32 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
72 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
41 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
1answer
48 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
36 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 ...