Questions tagged [process]

An instance of a running computer program.

761 questions
245
votes
13 answers

Environment variables of a running process on Unix?

I need to troubleshoot some problems related to environment variables on a Unix system. On Windows, I can use a tool such as ProcessExplorer to select particular a process and view values of each environment variable. How can I accomplish the same…
Gant
  • 2,595
  • 2
  • 16
  • 8
147
votes
9 answers

Keeping a linux process running after I logout

I'm connecting to a Linux machine through SSH, and I'm trying to run a heavy bash script that makes filesystem operations. It's expected to keep running for hours, but I cannot leave the SSH session open because of internet connections issues I…
doc_id
  • 1,509
  • 2
  • 12
  • 17
146
votes
6 answers

Show full process name in top

I'm running a Rails stack on Ubuntu. When I call ps -AF, I get a descriptive process name set by the Apache module like 00:00:43 Rails: /var/www... which is really helpful in diagnosing load issues. But when I call top, the same process shows up…
Ben K.
  • 2,379
  • 4
  • 18
  • 15
122
votes
8 answers

How to get pid of just started process

I want to start process (eg. myCommand) and get its pid (to allow to kill it later). I tried ps and filter by name, but I can not distinguish process by names myCommand ps ux | awk '// {print $2}' Because processes names are not…
rafalmag
  • 1,331
  • 2
  • 9
  • 9
91
votes
7 answers

How to sort ps output by process start time?

Is there a way to sort ps output by process start time, so newest are either at the top or bottom ? On Linux ? On SysV5 ? On Mac ?
Dean Smith
  • 1,270
  • 2
  • 11
  • 13
90
votes
6 answers

How do you free up a port being held open by dead process?

A colleague of mine recently ran into a problem where a process that had supposedly died was still bound to a network port, preventing other processes from binding to that port. Specifically, netstat -a -b was reporting that a process named System…
Adam Rosenfield
  • 1,000
  • 1
  • 6
  • 6
81
votes
9 answers

Dump a linux process's memory to file

Is it possible to dump the current memory allocated for a process (by PID) to a file? Or read it somehow?
Fragsworth
  • 1,181
  • 2
  • 12
  • 14
60
votes
7 answers

How to prevent "ps" reporting its own process?

$ ps | grep django 28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat 51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO 51472 ttys005 0:01.29 /usr/bin/python bin/django celeryd -l INFO 51510 ttys005 0:01.89…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
48
votes
34 answers

How are you documenting your work, processes and environment?

Are you using a wiki format? If so, which product? (MediaWiki, Confluence, Sharepoint etc.) Have you create a knowledge base? (Problem/solution-oriented short documents.) What challenges do you find with creating documentation that works, so you…
user1804
48
votes
7 answers

How can I identify which processes are generating UDP traffic on Linux?

My machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic. The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid. Is UDP the connection…
boos
  • 641
  • 1
  • 6
  • 8
43
votes
6 answers

Linux - How do I see when a process started?

How can I see when a process started, assuming I know the pid. (On Linux)
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
42
votes
9 answers

How to get pgrep to display full process info

Is there any way to get pgrep to give me all the info about each process that ps does? I know I can pipe ps through grep but that's a lot of typing and it also gives me the grep process itself which I don't want.
JoelFan
  • 2,285
  • 5
  • 26
  • 30
38
votes
5 answers

Set max file limit on a running process

I have a long running process that is eventually going to hit the max open file limit. I know how to change that after it fails, but is there a way to change that for the running process, from the command line?
kāgii
  • 481
  • 1
  • 4
  • 4
38
votes
7 answers

If I launch a background process and then log out, will it continue to run?

Asking this after a prolonged discussion with a coworker, I'd really like a clarification here. I launch a background process, either by appending "&" to the command line or by stopping it with CTRL-Z and resuming it in background with "bg". Then I…
Massimo
  • 70,200
  • 57
  • 200
  • 323
34
votes
6 answers

How do I track CPU Utilization for Window Services?

I am using the windows task manager to track CPU utilization. I notice that my applications are listed but Windows Services are not. For instance, total CPU usage is listed at 70% but the summary of the listed applications is only about 30%. I…
John
1
2 3
50 51