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