Questions tagged [procps]
15 questions
28
votes
2 answers
How to install ps in redhat ubi8/ubi-minimal
For registry.access.redhat.com/ubi8/ubi-minimal this image, i need ps utility to be installed. There is no yum package manager available in the image. Instead , we have microdnf.
microdnf install procps says there is no such package named procps

ambikanair
- 4,004
- 11
- 43
- 83
11
votes
4 answers
ps utility in linux (procps), how to check which CPU is used
It is about procps package, utility ps for linux.
Can it print the number of last used CPU for each process (thread)?
Update: Not a CPU Time (10 seconds), but a CPU NUMBER (CPU0,CPU5,CPU123)

osgx
- 90,338
- 53
- 357
- 513
6
votes
3 answers
Add New Kernel Parameter To Custom Linux Image Generated By Yocto
I am experimenting with Yocto project for generating custom Linux images for my embedded devices.
I have a requirement to add a persistent custom kernel parameter to /etc/sysctl.conf of the generated image.
i.e.
kernel.core_pipe_limit =…

Anubis
- 6,995
- 14
- 56
- 87
3
votes
1 answer
pgrep multiple process names
I want to get PIDs of two or more processes using "pgrep" command in Linux.
As we know pgrep syntax is
pgrep [options]
Here is a hypothetical command which should return PIDs of two processes whose names are process1 and process2…

TechEnthusiast
- 1,795
- 2
- 17
- 32
2
votes
2 answers
efficient way to parse vmstat output
I'm trying to efficiently parse vmstat output preferably in awk or sed, it also should work on both linux and hp-ux. For example I would like to cut cpu idle % ("92" in this case) from the following output:
$ vmstat
procs -----------memory----------…

ak83
- 63
- 1
- 4
2
votes
1 answer
how to use procps-3.2.8 in listing all the running processes?
Does anyone know how to use procps-3.2.8 in listing all the running processes of ubuntu/linux?
And how to kill them using procps-3.2.8?
please provide the step-by-step procedure and provide useful links about procps.

Hammad Ali Khan
- 138
- 1
- 11
2
votes
1 answer
Modifying Shell Script for Cygwin Usage
I am working on modifying a shell script to work in Cygwin (paths, etc). One problem I am facing is with this particular line:
ps ax | grep -v grep | grep $DB_JAVA_CLASS > /dev/null 2>&1
Trying this with ps and procps, it does not seem to locate the…

Chuck R.
- 21
- 1
1
vote
1 answer
different process's %cpu output via top from busybox and procps-ng
I have an Embedded Linux(Kernel 2.6.37) running on ARM. There's a default top from busybox 1.13.2. And I build a procps-ng 3.3.11 via cross compile to run on this Linux. I found that the process's %cpu via top output from busybox and procps-ng are…

Jay Zhang
- 109
- 3
- 11
0
votes
0 answers
Is it possible for ps to show container name
Is there a way to tell ps (the bash command, not docker ps) to show the name of container that a specific process is running in?
So lets say I did this:
systemctl start nginx
lxc launch some-nginx-image firstcontainer
docker run some-nginx-image…

HubertNNN
- 1,727
- 1
- 14
- 29
0
votes
0 answers
How to install the ps command alongside Busybox in Yocto Linux?
I need a full featured ps command that accepts the -a option in my Yocto linux OS.
I've checked this question and so, I've been trying to install procps alongside busybox in my image, by including in my workspace's conf/local.conf the following…

SergioMP
- 81
- 3
0
votes
1 answer
pgrep does not search for long (more than 15 chars) process name
My process name is core-plugin-loader
core-plugin-loader --file=/usr/lib/blah.so &
pi@kyb-pi4 /usr> pgrep core-plugin-loader
pi@kyb-pi4 /usr> pgrep core-plugin-loa
13892
pi@kyb-pi4 /usr> pgrep -a core-plugin-loa
13892 core-plugin-loader…

kyb
- 7,233
- 5
- 52
- 105
0
votes
1 answer
Extra process id from R system("pgrep -f ...") call
When calling system function from R session and passing pgrep command to list processes id matching the particular name the results from the system call produce one extra pid vs the same pgrep command used directly in shell.
This is likely the…

jangorecki
- 16,384
- 4
- 79
- 160
0
votes
2 answers
Top command failing in my embedded device
When I fire the top command for my board it says 'vt102': unknown terminal type. I cant seem to figure out why it is happening so I have also loaded the library files from my PC into the board.The procps was built using my own cross-sompiled gcc…

Rohan Majumdar
- 63
- 2
- 11
-1
votes
1 answer
'watch' is not interpreting the implicit 'reset' color code `^[m`
It appears that watch is not interpret the implicit 'reset' color code ^[m. It does interpret the explicit code ^[0m.
Does anyone know how to fix this? Or does it sound like a bug and I need to contact the maintainers of watch?
Why I'm asking:
I'm…

dthor
- 1,749
- 1
- 18
- 45
-1
votes
2 answers
procps cause stack smashing
I've been writing a program trying to find itself using the procps library.
But for some reason it smashes the stack.
This is my code:
int main(){
PROCTAB *ptp;
proc_t task;
pid_t mypid[1];
mypid[0] = getpid();
printf("My id:…

user1011071
- 25
- 5