Top "Process" questions

This tag is about operating system processes.

Check if process returns 0 with batch file

I want to start a process with a batch file and if it returns nonzero, do something else. I need …

windows process batch-file exit-code
Threads vs Processes in Linux

I've recently heard a few people say that in Linux, it is almost always better to use processes instead of …

linux performance multithreading process
How to get the PID of a process by giving the process name in Mac OS X ?

I am writing a script to monitor the CPU and MEM of any given process. For that i need to …

macos bash shell process pid
How to get PID of process I've just started within java program?

I've started a process with following code ProcessBuilder pb = new ProcessBuilder("cmd", "/c", "path"); try { Process p = pb.start(); } catch (…

java process pid processbuilder
How to check if there exists a process with a given pid in Python?

Is there a way to check to see if a pid corresponds to a valid process? I'm getting a pid …

python process pid
Quick-and-dirty way to ensure only one instance of a shell script is running at a time

What's a quick-and-dirty way to make sure that only one instance of a shell script is running at a given …

bash shell process lockfile
How to check is Apache2 is stopped in Ubuntu?

I want to make sure apache2 service is stopped. 1. I need to verify if apache2 is installed or not. when …

ubuntu process apache2
Android: keeping a background service alive (preventing process death)

I have a service that is defined as: public class SleepAccelerometerService extends Service implements SensorEventListener Essentially, I am making an …

android service process alarmmanager
How to Daemonize a Java Program?

I have a Java program that I'd like to daemonize on a linux system. In other words, I want to …

java process daemon
Open file with associated application

i want to ask for help with opening a file from c# app with associated app. I tried this: ProcessStartInfo …

c# process file-association