Skip to main content

Questions tagged [process]

This tag is about operating system processes. It may also refer to a specific construct on a given platform, e.g., the System.Diagnostics.Process class for .NET

3042 votes
40 answers
4.4m views

Find (and kill) process locking port 3000 on Mac [closed]

How do I find (and kill) processes that listen to/use my TCP ports? I'm on macOS. Sometimes, after a crash or some bug, my Rails app is locking port 3000. I can't find it using ps -ef... When running ...
oma's user avatar
  • 40k
2031 votes
35 answers
1.4m views

What is the difference between a process and a thread?

What is the technical difference between a process and a thread? I get the feeling a word like 'process' is overused and there are also hardware and software threads. How about light-weight processes ...
James Fassett's user avatar
989 votes
7 answers
1.1m views

How do I get the application exit code from a Windows command line?

I am running a program and want to see what its return code is (since it returns different codes based on different errors). I know in Bash I can do this by running echo $? What do I do when ...
Skrud's user avatar
  • 11.8k
912 votes
32 answers
1.5m views

How can I measure the actual memory usage of an application or process?

How do you measure the memory usage of an application or process in Linux? From the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent. Why ps is &...
ksuralta's user avatar
  • 16.8k
887 votes
60 answers
1.7m views

Node / Express: EADDRINUSE, Address already in use - how can I stop the process using the port?

I have a simple server running in node.js using connect: var server = require('connect').createServer(); //actions... server.listen(3000); In my code I have actual route handlers, but that's the ...
Skawful's user avatar
  • 9,687
819 votes
13 answers
628k views

What killed my process and why?

My application runs as a background process on Linux. It is currently started at the command line in a Terminal window. Recently a user was executing the application for a while and it died ...
sbq's user avatar
  • 8,229
793 votes
14 answers
145k views

Xcode process launch failed: Security

I have been developing an app for 1 or 2 weeks now and just yesterday I have updated my iPhone 5S to the iOS 8 GM. Everything worked fine and I could test on my device as well until I deleted the app ...
Tom Spee's user avatar
  • 9,219
770 votes
35 answers
790k views

How to wait in bash for several subprocesses to finish, and return exit code !=0 when any subprocess ends with code !=0?

How to wait in a bash script for several subprocesses spawned from that script to finish, and then return exit code !=0 when any of the subprocesses ends with code !=0? Simple script: #!/bin/bash for ...
tkokoszka's user avatar
  • 12k
662 votes
31 answers
862k views

How do I run a node.js app as a background service?

Since this post has gotten a lot of attention over the years, I've listed the top solutions per platform at the bottom of this post. Original post: I want my node.js server to run in the background, ...
Peter Kruithof's user avatar
600 votes
13 answers
717k views

How do I execute a command and get the output of the command within C++ using POSIX?

I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an example ...
Misha M's user avatar
  • 11.2k
466 votes
35 answers
443k views

What's the best way to send a signal to all members of a process group?

I want to kill a whole process tree. What is the best way to do this using any common scripting languages? I am looking for a simple solution.
Adam Peck's user avatar
  • 7,005
447 votes
72 answers
497k views

Visual Studio "Could not copy" .... during build

I keep getting this error during the build of my VS2012 C# project Error 41 Could not copy "obj\Debug\WeinGartner.WeinCad.exe" to "bin\Debug\WeinGartner.WeinCad.exe". Exceeded retry count of 10....
bradgonesurfing's user avatar
412 votes
11 answers
683k views

Start a background process in Python

I'm trying to port a shell script to the much more readable python version. The original shell script starts several processes (utilities, monitors, etc.) in the background with "&". How can I ...
Artem's user avatar
  • 6,620
384 votes
8 answers
337k views

How to get the start time of a long-running Linux process?

Is it possible to get the start time of an old running process? It seems that ps will report the date (not the time) if it wasn't started today, and only the year if it wasn't started this year. Is ...
ajwood's user avatar
  • 18.8k
380 votes
10 answers
572k views

127 Return code from $?

What is the meaning of return value 127 from $? in UNIX.
Sachin's user avatar
  • 21.5k

15 30 50 per page
1
2 3 4 5
1222