About 55,200 results
Open links in new tab
  1. How to check if process is running in linux - Stack Overflow

    Nov 6, 2012 · From inside a program, this is a common way to check that a process of known pid is still existing and running (or waiting). You could use the pidof command to find the processes running some executable, e.g. pidof zsh to find all the zsh processes. You could also use killall …

  2. Finding process count in Linux via command line

    Jun 17, 2010 · This command output = Number of Processes + 1. This is why When we are running this command , our system read thats "ps -awef | grep CAP | wc -l " is also a process. So yes our real answer is (Number of Processes) = Command Output - 1. Note : These processes are only those processes who include the name of "CAP"

  3. linux - Can't find out where does a node.js app running and can't …

    If all those kill process commands don't work for you, my suggestion is to check if you were using any other packages to run your node process. I had the similar issue, and it was due to I was running my node process using PM2(a NPM package). The kill [processID] command disables the process but keeps the port occupied. Hence I had to go into ...

  4. linux - List of Java processes - Stack Overflow

    Jun 8, 2011 · Or, if you are running under Linux, you can query the /proc directory. I know, this seems horrible, and non portable, and even poorly implemented, I agree. But because Java actually runs in a VM, for some absurd reason that I can't really figure out after more then 15 years working the JDK, is why it isn't possible to see things outside the JVM ...

  5. linux - how to investigate what a process is doing ... - Stack Overflow

    May 19, 2009 · For daemons which spawn other processes you may need to use the -f parameter as well. Besides the always useful strace you may also want to look at ltrace. ltrace is similar to strace, but it shows library calls instead of system calls. An example:

  6. Linux/Unix command to determine if process is running?

    Whose output is the same on Linux and OS X: 3519 3521 3523 3524. The output of the following is an empty string, making this approach safe for processes that are not running: echo ps cax | grep aasdfasdf | grep -o '^[ ]*[0-9]*' This approach is suitable for writing a simple empty string test, then even iterating through the discovered PIDs.

  7. linux - How to view a cron job running currently? - Stack Overflow

    Apr 27, 2016 · I have a cron job set up for daily execution (on my own ubuntu, just for trial) like so: 0 0 * * * /path/exec.sh It is been set for daily execution. I usually open my machine around 8a.m. I would ...

  8. aws ssm - How can i get a list of running processes on my running …

    Apr 30, 2019 · Yes, you can get a list of processes running on your EC2 instance. You don't need to create a new document to do that. You're looking for the send-command. The easiest way to figure out how to do it is to use the AWS SSM console to execute the command through the console, and it will give you the command to run on the command line to repeat it.

  9. How to log all the processes running inside a Docker container?

    Oct 28, 2016 · It is possible to show all the processes running inside a container without login to terminal by using the following command. Of course, it is just like how one can see by using ps -eaf , so just add it to docker exec .

  10. linux - How to test if a process is running with grep in bash?

    May 5, 2014 · This excludes the process that is returning when your application is not running that shows the grep running. When this is run and your application is not running, it will return nothing. Check for the empty string, and exit that way.

Refresh