I need to know the complete execution time, CPU and memory utilization of a shell script that I have written. I want to execute the commands that outputs the CPU and memory utilization from the same script. I am more interested in real time CPU utilization rather than average time CPU utilization when the script finishes its execution.Is this feasible? OS - FreeBSD and linux
Please help.