Questions tagged [process]

An instance of a running computer program.

746 questions
244
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,585
  • 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,499
  • 2
  • 12
  • 17
132
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,149
  • 4
  • 17
  • 15
109
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,201
  • 2
  • 9
  • 8
87
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,230
  • 2
  • 11
  • 13
87
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
  • 970
  • 1
  • 6
  • 6
76
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,121
  • 2
  • 12
  • 14
58
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,539
  • 12
  • 45
  • 57
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
47
votes
6 answers

How I can identify which process is making 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
  • 631
  • 1
  • 6
  • 8
40
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
  • 30,211
  • 62
  • 184
  • 246
40
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,165
  • 5
  • 24
  • 30
37
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
  • 471
  • 1
  • 4
  • 4
35
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
  • 68,714
  • 56
  • 196
  • 319
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
49 50