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

learn more… | top users | synonyms

2
votes
2answers
67 views

Detecting Kernal Thread on Older Kernel Version

Looking at the proc man page (http://man7.org/linux/man-pages/man5/proc.5.html) it is possible to detect which processes are kernel threads in /proc/<pid>/stat by looking at the flags value ...
2
votes
2answers
129 views

lsof - debug the output information

I was going through the questions of this site. In this particular question, I see the command lsof being used to list the files that are open for a particular user. I ran the below command in my ...
3
votes
1answer
234 views

Bind9 — How to find which programs are making which dns lookups?

Using bind9 on a laptop shows lots of nonsense domains when network connectivity is down: Oct 18 19:56:18 lap3 named[1536]: error (network unreachable) resolving './NS/IN': 128.63.2.53#53 Oct 18 ...
5
votes
2answers
206 views

Processes in Linux

As I understand it, process descriptors are stored in a doubly linked list data structure. But a fork can create multiple children for the same process, so that makes me think that there is a tree ...
5
votes
2answers
159 views

Is there a way to really prioritize processes or make Linux respect their priorities?

I know there are process priorities like in other operating systems, going from -20 (most prio) to 19 (less prio) but Linux seems to ignore them. Right now I was building the kernel in the background ...
2
votes
2answers
105 views

How to make processes not die after its parent dies?

I've been messing with forkbombs and noticed that if I just fork() processes repeatedly, killing the initial process will bring down the whole tree. This is not the case for forkbombs written in BASH ...
0
votes
3answers
986 views

process id and killing process - ps commmand

Please see the output of below ps command: abc@smaug:~/Desktop$ ps ax | grep firefox 2213 ? Sl 2:01 /usr/lib/firefox/firefox 2644 pts/0 S+ 0:00 grep --color=auto firefox Please ...
13
votes
3answers
1k views

Find out current working directory of a running process?

What command(s) can one use to find out the current working directory (CWD) of a running process? These would be commands you could use externally from the process.
2
votes
2answers
127 views

How does a process handle the situation when it finds no memory to use?

What happens when a particular process finds that there is no memory to use? Will that process kill/restart another process to proceed their task ? Or what the process (that requires more memory) ...
1
vote
1answer
52 views

devilspie detect if application was started with a flag

How can I set devilspie to detect if an application was started with the flag --hello-world from terminal? For example window_name detects the window title. How can transform in devilspie the ...
1
vote
2answers
107 views

KDE becomes slow

I experience problems with KDE 4.11.1 on Arch Linux. It suddenly becomes laggy and unresponsive and just as suddenly returns to the normal state after some time. Normal CPU load (KSysGuard): ...
2
votes
1answer
481 views

child process does not inherit the pending signals from the parent after a fork system call, why?

Could anybody please tell me the reason to why pending signals are not inherited by the child process? On the other hand, the child process inherits the signal handlers and signal mask from the ...
1
vote
4answers
270 views

monitoring file changes + process access to files

I would like to see what's happening in my app server folders, which files are changed by process x or which *.war files has been changed (replaced/created) in last x minutes. I am software developer ...
4
votes
3answers
523 views

Use & (ampersand) in single line bash loop

I have been using this command successfully, which changes a variable in a config file then executes a Python script within a loop: for((i=114;i<=255;i+=1)); do echo $i > numbers.txt;python ...
4
votes
3answers
638 views

What's the difference between pkill and killall?

I know that pkill has more filtering rules than killall. My question is, what is the difference between: pkill [signal] name and killall [signal] name I've read that killall is more effective ...
3
votes
1answer
79 views

How can I recover suspended processes after restarting X?

I had several instances of Firefox running, which I suspended. I think I used 'the GUI' (KDE's System Activity), which I think is the same as kill -19. Normally this works fine - I can resume the ...
0
votes
2answers
75 views

UNIX- Identify which processes are running more that 6hours

I need to know which processes are running more than 6 hours in UNIX. How can I find those out?
1
vote
2answers
401 views

How can I automatically kill the process with the highest CPU load?

Sometimes programs will lock up in the background and cause high CPU usage. Is there any way I can programmatically ascertain which process is causing the highest CPU load at the moment and kill it?
3
votes
2answers
340 views

Wait for background processes to finish with inverse match process ID

I'm looking to run a number of background processes in a loop, but only want to wait for all of those processes to finish, still allowing another background process to continue. After doing some ...
2
votes
1answer
93 views

Why is a user started process running when not logged in?

Following a tutorial on setting up gnupg to manage ssh keys I've managed to get several instances of gpg-agent running: [root@frylock ~]# ps aux | grep agent root 2764 0.0 0.0 4208 432 ? ...
4
votes
2answers
149 views

LD_PRELOAD or similar to prevent network access

I'd like to start a program disconnected from the network (because immediately upon starting it tries to download huge amounts of data, which can be prevented by changing settings as soon as it ...
0
votes
2answers
159 views

Find PHP process that logs to file

I have started a PHP script via browser and due to a loop error the script continues to be executed even after closing the browser. I am noticing it since the script is logging error messages to my ...
1
vote
1answer
69 views

How to list killable tasks?

As manpage of ps states A process with STATUS with the value "D" means "uninterruptible sleep (usually IO)" Also, I've read: You should use TASK_INTERRUPTIBLE here, otherwise your kernel thread ...
2
votes
0answers
149 views

how to stop kernel threads preempting real time user space processes?

I created some processes in user space and tried to visualize its working in kernelshark with the trace recorded using trace-cmd. But kernel processes like the ones shown below are preempting my ...
2
votes
4answers
763 views

How to send keystrokes (F5) from terminal to a process?

I'm using an Raspberry Pi in combination with Chromium (kiosk mode) to show up some stats. The Pi doesn't have an connected keyboard so I searched for a solution to send keystrokes from the terminal ...
1
vote
1answer
146 views

Is there a way to see which process invoked a shell script?

Is there a possibility so see from some unix log file what process have invoked a bash/ksh shell script or is this shell script invoked manually from command line? So is there some log file which ...
3
votes
1answer
208 views

Linux: How to check whether a process is slowed down by other running processes

I have one process running on a RHEL 6.3 machine. Somehow this is taking a longer processing time than the same process running on another machine. How is it possible to know why this process is ...
2
votes
2answers
94 views

Absolute path to currently-running zsh?

Sometimes the output of ps -p $$ shows the absolute path to the currently-running zsh, % ps -p $$ PID TTY TIME CMD 1027 ttys005 0:00.11 /usr/local/bin/zsh but not always: % ps -p ...
3
votes
5answers
303 views

Is there a way to listen to process?

I want to know if there is a way to listen to a process in linux & unix - when it ends and what's the exit code of the process(script). I dont want to write a script that will run X seconds and ...
5
votes
2answers
423 views

Does linux kill heavy and long running background processes after they reach some threshold?

If I start a really heavy (memory/cpu intensive) running really long running process will the OS terminate it after a period of time arbitrarily? I.e. are there any limits beyond which the OS would ...
4
votes
2answers
3k views

How to list processes locking file?

Using flock, several processes can have a shared lock at the same time, or be waiting to acquire a write lock. How do I get a list of these processes? That is, for a given file X, ideally to find the ...
2
votes
2answers
131 views

a handy tool to measure memory consumption of a program [duplicate]

I develop a C code on Debian. I am looking for a program to monitor memory consumption of my code in real-time. The only value I care is the maximum RAM consumption, it should hold the value even if ...
2
votes
1answer
211 views

How to see process created by specific user in Unix/linux

I want to see list of process created by specific user or group of user in Linux Can I do it using ps command or is there any other command to achieve this?
2
votes
0answers
58 views

Linux child processes not being culled [closed]

This is causing significant problems for script portability between BSD and Linux. I am on a CentOS 6.4 where this happens. I have a nice compact test case: bash -c "inotifywait -mcr . | sed ...
32
votes
2answers
860 views

How can I check what signals a process is listening to?

How can I verify whether a running process will catch a signal, or ignore it, or block it? Ideally I'd like to see a list of signals, or at least not have to actually send the signal to check.
1
vote
0answers
159 views

gnome-terminal cmd leaving processes open after closing parent window

The following simple command should demonstrate my issue: gnome-terminal --tab -t "Tab 1" -e "/bin/bash" --tab -t "Tab 2" -e "/bin/bash" This should open a new window with two tabs and an active ...
1
vote
2answers
155 views

How to kill a script which starts new processes?

The following is a Python application which spans a few threads, then spawns a new process of itself and exits: $ cat restart.py import os import random import signal import sys import threading ...
0
votes
3answers
330 views

How can I start a process using cpulimit?

I am trying to use cpulimit for testing an app I'm developing under low resource conditions, and I need the process to start under the influence of cpulimit. It is not sufficient to start the program ...
0
votes
2answers
131 views

what is an application pool?

I'm reading this article: http://www.modrails.com/documentation/Architectural%20overview.html#web_app_models It talks about how Phusion Passenger extends Apache2 to act as an application server. ...
3
votes
1answer
150 views

When vfork is called is parent process really suspended?

As much as I know when vfork is called child process uses the same address space as that of the parent and any changes made by the child process in parents variables are reflected onto parents ...
2
votes
2answers
183 views

How do I know if acct is running? (The Linux user accounting system)

I have installed the acct package and it is running because I can see file activity in the log file. I know there is the command accton on to turn it on, but how do I determine that its running short ...
0
votes
1answer
88 views

What is meant by “a process has open handles to system objects”? [closed]

The following are qualities of a process: virtual address space executable code open handles to system objects a security context a unique process identifier environment variables a priority class ...
2
votes
4answers
534 views

Process is eating all of the CPU time

Is there any magic command to track down which process is starting this perl task that is eating 100% of CPU time? I have this problem on several machines where JBoss AS is installed.
11
votes
2answers
3k views

Which process has PID 0?

I'm looking for the process started in Linux which has process ID 0. I know init has PID 1 , which is the first process in Linux, is there any process with PID 0?
3
votes
3answers
59 views

Contents of stack area of a process

I've been going through some Unix text books and I can't have a clear picture on the contents of the stack area of the process. Can anyone please explain or point out some references?
-3
votes
2answers
142 views

Bash operator & not working [closed]

As per the bash reference, we can give a non-blocking command by ending it with an ampersand(&) character. However, when I try the below command its not working: python -m SimpleHTTPServer ...
3
votes
2answers
103 views

Current environmental variables of a process

This question relates to this answer. Is it possible to get the current (not initial) environmental variables of a process by making a child process and checking its initial environmental variables? ...
2
votes
4answers
251 views

How to get the id of a very short child process if the parent is known?

I'm looking for a way to get the PID of a short child process in Linux. The process is instant from a human perspective. I know the parent process which will spawn the child process. Is there a way ...
2
votes
2answers
74 views

How to get environmental variables of a very short process?

I have a very short process for which i want to check the environmental variables for debugging purposes. The process is instant from a human perspective. The example illustrates it better. Example ...
0
votes
2answers
239 views

what is a background process?

Here is a common definition of a background process: "A background process is a program that is running without user input. A number of background processes can be running on a multitasking operating ...