Hi,
I want to write a script to evaluate the CPU usage of a specific application or process. While I thought I knew witch app or process to check, it became obvious that checking one specific app meant to check a specific sub process of that app. So I have to check the good app or process.
- does the script
(do shell script "/bin/ps -xco %cpu,command | /usr/bin/awk '/" & someProcess & "$/ {print $1}'")
work for any app or process if I use the good app or process name ?
- why aren’t all applications (like MS Excel) not listed when using this shell script:
do shell script "/bin/ps -xco %cpu,command"
Regards.