소스 검색

更新启动脚本

dongzhaorui 2 년 전
부모
커밋
70615bd22f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      zgztb_cookie/start.sh

+ 2 - 1
zgztb_cookie/start.sh

@@ -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