An instance of a running computer program.
Questions tagged [process]
761 questions
13
votes
2 answers
Verify disown command
I issued the ^z; bg; disown sequence in order to allow me to close an ssh session in which I am running a super-important long-running process. This process writes status output to stderr, and it has continued to do so even after being detached…

mikewaters
- 1,175
- 1
- 14
- 27
12
votes
11 answers
Production deployment tools
Similar to building software, tools should be used to deploy production server updates (whether DB, website, router configurations, etc). The use of tools reduces certain types of human error (missed steps for example).
What tools are available…

Adam Davis
- 5,446
- 3
- 37
- 52
12
votes
7 answers
Find (and kill) old processes
Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are still seen as in a running state by the system,…

Ryaner
- 3,097
- 5
- 25
- 33
12
votes
6 answers
How to relaunch an executable if it dies
I'm looking for a way to monitor a process, and relaunch the executable if the process dies for whatever reason. Does Linux have a built-in tool that can do this?

pufferfish
- 2,830
- 11
- 39
- 40
12
votes
1 answer
Meaning of killall -0
I see from many place the follow command is used to check if a process exists, e.g.
killall -0 nginx
But from the documentation I can't see anything related to this argument, can anyone explain?

Howard
- 2,135
- 13
- 48
- 72
12
votes
5 answers
What is the difference between java.exe and javaw.exe?
On a Windows Server, I have 2 kinds of Java processes
java.exe
javaw.exe
What are the differences ?

Steve Schnepp
- 2,314
- 3
- 21
- 28
12
votes
6 answers
Are .pid files reliable for determining whether a process is running?
Many programs such as sshd create .pid files in /var/run/ that contain their process ID. Are these files reliable for determining whether a process is running? My guess is that these files are created manually by a process, and therefore will…

indiv
- 265
- 2
- 10
11
votes
5 answers
How to measure solaris process memory usage?
How to check how much memory a solaris process consumes? I'd like both total address space allocated and the amount that is resident in RAM.
I tried summing pmap output with some awk script, but it was an ugly hack. Is there a better way to script…

Tadeusz A. Kadłubowski
- 271
- 1
- 2
- 9
11
votes
3 answers
Upstart : start service after non-upstart process
On Ubuntu 10.04, I need to start my service with upstart, but only when mysql is up and running.
The problem is that mysql itself is not handled by upstart, so I can't use the "start on" feature.
What can I do ?

Falken
- 1,702
- 5
- 18
- 28
11
votes
4 answers
Giving a process a specific name in GNU/Linux?
How do I launch a process so that it would have a specific identifier in ps command?
UPD: I have a couple of servers running on one box. Most of them are in deployment mode. However one is in development. All servers are Pythonic and the disease is…

Alex
- 2,357
- 5
- 32
- 41
11
votes
5 answers
Limiting network throughput of an already launched process ? (Linux/FreeBSD)
Is there any utility to limit the network throughput of a process after it has been launched? Simple example: you note that a user takes all your upload bandwidth using scp and you'd like to limit the rate or decrease the priority of the transfer.
I…

jbdenis
- 111
- 1
- 3
11
votes
8 answers
How to detect a hidden process in linux?
We have a box we suspect has been rooted at work. The question is how do we find it? I am no system administrator, but I was brought onto the team to resolve the situation and I am curious where good places to look for such as problem might be?…

Chris
- 419
- 2
- 4
- 14
11
votes
2 answers
Linux - Find out the current working directory of a process?
If i have a process PID X, how can I find out what directory it was running in? I can see with ps aux | grep X the full command line that it was invoked with. However in this case it's ./script.sh, and I want to see which script.sh it's running.

Amandasaurus
- 31,471
- 65
- 192
- 253
10
votes
2 answers
cannot remove file, Device or resource busy
I tried removing a file. The most relevant answer can be found here, but I found no luck. Here is the original problem:
maxgitt@mgpc:~$ sudo rm -rf /var/lib/docker/
rm: cannot remove '/var/lib/docker/aufs': Device or resource busy
To locate the…

Max
- 237
- 2
- 4
- 8
10
votes
5 answers
Bash snippet for killing a process until it's dead?
I'm trying to write a robust bash script, and in it I create a background process. At the end of the script, I want to kill it. I have it's PID.
I was thinking of somthing like this
while [[ ps ef $PID ]] ; do
kill $PID
sleep 0.5
done
Any…

Amandasaurus
- 31,471
- 65
- 192
- 253