watchPm5gOpenFile.sh 173 B

1234567
  1. #!/bin/bash
  2. # 监控pm5g打开文件
  3. while true; do
  4. sleep 1
  5. date +'%Y-%m-%d %H:%M:%S' >>watch.log && lsof -p "$(pgrep -f pmInterface5g.jar)" | wc -l >>watch.log
  6. done &