2 deleted 14 characters in body
source | link

If you have a cut-down Linux distribution where top does not have per process (-p) option or related optionoptions, you can parse the output of the top command for your process name to get the CPU usage information per process.

while true;  do top -bn1 | awk '/your_process_name/ {print  $8}' ; sleep 1; done

The values at position 8 representrepresents the CPU usage per process in the output of the top command in my embedded Linux distribution

If you have a cut-down Linux distribution where top does not have per process (-p) option or related option, you can parse the output of the top command for your process name to get the CPU usage information per process.

while true;  do top -bn1 | awk '/your_process_name/ {print  $8}' ; sleep 1; done

The values at position 8 represent CPU usage per process in the output of the top command in my embedded Linux distribution

If you have a cut-down Linux distribution where top does not have per process (-p) option or related options, you can parse the output of the top command for your process name to get the CPU usage information per process.

while true;  do top -bn1 | awk '/your_process_name/ {print  $8}' ; sleep 1; done

8 represents the CPU usage per process in the output of the top command in my embedded Linux distribution

1
source | link

If you have a cut-down Linux distribution where top does not have per process (-p) option or related option, you can parse the output of the top command for your process name to get the CPU usage information per process.

while true;  do top -bn1 | awk '/your_process_name/ {print  $8}' ; sleep 1; done

The values at position 8 represent CPU usage per process in the output of the top command in my embedded Linux distribution