ps Questions

2

Solved

I am trying to produce an output that looks like this using docker ps and the json format command {"Names":"name"} docker ps --format '{{json .Names}}' outputs {"name"} without the label. dock...
Boondoggle asked 30/4, 2020 at 16:42

4

Solved

I am trying to automate testing forms that selenium would take too long (javascript heavy modern forms), and I want to use xdotool and get window IDs. I see you can call xdotool selectwindow and cl...
Galactose asked 10/12, 2015 at 17:20

4

Solved

How to get all process ids (pid) (similar to: $ ps aux) but without using ps. One example of when this would be used is when developing a dotnet 5 application to run on a docker host. The dotnet ru...
Homestead asked 2/10, 2015 at 18:20

4

When I do 'ps aux' a lot of the lines are longer than the width of my terminal, and not wrapping to the next line. At first I thought it was my stty settings, but I noticed that other command...
Hodson asked 8/12, 2013 at 18:45

6

Solved

I use a specific ps command namely ps -p <pid> -o %cpu, %mem which gives me a result like %CPU %MEM 15.1 10.0 All i want to do is to just print these numbers like 15.1 and 10.0 witho...
Halitosis asked 17/7, 2012 at 23:17

6

Solved

Suppose I have a ps command that looks like this: ps -Ao args:80,time,user --sort time It will give me a "space" separated set of rows. A row might look like this paulnath -bash 00:00:00 I w...
Rounders asked 25/6, 2010 at 0:0

3

Solved

ps aux will print out something formatted according to the below. It shows the user that the process runs under. But is there a way to display the group that the process runs under? USER PID %CPU ...
Cutshall asked 27/11, 2013 at 7:44

8

Solved

In a C program I can write argv[0] and the new name shows up in a ps listing. How can I do this in bash?
Exodus asked 15/7, 2010 at 0:10

5

Solved

How do I get a process list of all running processes from Python, on Unix, containing then name of the command/process and process id, so I can filter and kill processes.
Darrelldarrelle asked 7/7, 2009 at 9:41

2

In UNIX OS, how can I find the port number when i know the process name or pid ?
Fibroblast asked 27/11, 2012 at 16:47

3

The output of ps aux contains the following: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ubuntu 1496 9.1 0.0 0 0 pts/0 Z+ 19:47 0:30 [python] <defunct> ubuntu 1501 14.6 0.0 0 0 pt...
Tonsure asked 6/3, 2014 at 19:56

1

Solved

I'm trying to learn about memory and page fault, so I wrote the code below to check my understanding. I don't understand why calling malloc caused MINFL to increase since malloc() shouldn't affect ...
Pinot asked 27/3, 2021 at 5:41

8

Solved

I'm having an issue with attempting to save some plots with transparent ellipsoids on them if I attempt to save them with .ps/.eps extensions. Here's the plot saved as a .png: If I choose to sa...
Sibelius asked 28/10, 2013 at 15:27

3

Solved

There are two different python programs running in this VM one is a background job who monitors a folder and then 'does stuff' (with several workers) 10835 ? Sl 0:03 python main.py 10844 ? Sl 34:...
Digiacomo asked 28/5, 2013 at 17:33

5

I have a Java program running on a Linux computer, and want to find the process ID (pid) of its process. I know the ps command can provide this information, but its output is confusing because it h...
Petulant asked 18/4, 2012 at 1:32

4

Solved

I am writing a bash script where I need to find out the userID of a process. For an example let the process be bash itself. I tried ps aux | grep ba[s]h but the following was returned: 1000 2745 ...
Enchantress asked 12/2, 2014 at 12:42

8

Solved

I use ps ef and ps rf a lot. Here is a sample output for ps rf: PID TTY STAT TIME COMMAND 3476 pts/0 S 0:00 su ... 3477 pts/0 S 0:02 \_ bash 8062 pts/0 T 1:16 \_ emacs -nw ... 15733 pts/0 R+ ...
Skaggs asked 11/9, 2012 at 15:36

4

Solved

I need to extract PID, UID and command fields from 'ps' and I have tried it like this: ps -L u n | cut -f 1,2,13 For some reason, this behaves as there is no cut command whatsoever. It just retur...
Possession asked 26/3, 2013 at 17:38

4

Solved

I have to solve an exercise using awk. Basically I need to retrieve from 'ps aux' command the total of memory usage for each user and format like this: User Total%Mem user1 3.4% user2 1.5% and s...
Jejune asked 16/4, 2010 at 22:41

1

A multi-thread process written in C exhausts almost all of system memory. To find out the thread which is consuming most of the memory, I made a core file using gcore [pid] to check the memory usag...
Pentagon asked 2/10, 2018 at 2:2

2

Solved

adb shell ps not working in O android release adb shell ps command in Android O release is listing only ps process information, but it is not listing all the processes information of all the proce...
Jeffry asked 24/6, 2017 at 4:29

2

I'm just scripting something for some new software. Therefore i have to remove some older software. I'm doing this whit a PS script. This works almost fine. The elevated rights are working, the sof...
Shrub asked 7/3, 2018 at 8:9

1

Solved

In ubuntu based docker/os $ ps PID USER TIME COMMAND 1 postgres 0:00 postgres 47 postgres 0:00 postgres: checkpointer process 48 postgres 0:00 postgres: writer process 49 postgres 0:00 postg...
Celin asked 7/2, 2018 at 3:53

3

Is there a way for ps (or similar tool) to display the pthread's name? I wrote the following simple program: // th_name.c #include <stdio.h> #include <pthread.h> void * f1() { printf...
Baryon asked 7/7, 2013 at 18:3

1

I am capturing output from ps aux: current_processes=`ps aux | grep "tempdir" | tail -3` and when I echo it, it looks like this echo $current_processes 19984 10089 17784 and when I echo plus ...
Thibodeau asked 7/9, 2017 at 1:54

© 2022 - 2025 — McMap. All rights reserved.