@@ -1,6 +1,5 @@
#!/bin/bash
-#进入rest所有目录,后续在此目录执行动作
function check_time() {
time_subroutine=$(getconf CLK_TCK)
start_time=$(awk '{print $22}' /proc/$1/stat)
@@ -12,8 +11,10 @@ function check_time() {
fi
}
+# 切换目录,在此目录下执行
cd /mnt
+
for pid in $(ps -ef | grep -v grep | grep detail | awk '{print $2}'); do
echo $pid
check_time $pid