If I run top -p <myPID> -n 1 with a terminal that isn't wide enough, the CPU utilization % is omitted from the output. When trying to find a process' cpu utilization via bash scripting, this is a huge problem, as the script won't work if the terminal you're running it in isn't wide enough.
ps -oe pcpu,pid,cmd will give me the total average cpu, but not a running utilization.
Is there a command that I can use to get the current cpu utilization of a process that isn't dependent on terminal width?

