The shell script counts the CPU and memory occupied by the httpd process and child processes. It is required to count every 5s

  1. Scripting
    Insert picture description here
    Insert picture description here
    Insert picture description here

  2. Do timed tasks
    Insert picture description here
    sleep 5 execute every 5 seconds

  3. Check whether it is executed
    Insert picture description here

Guess you like

Origin blog.csdn.net/lq_hello/article/details/107235270