瀏覽代碼

Support python3 in any directory instead of just /usr/bin

master
JustAnotherArchivist 4 年之前
父節點
當前提交
fed66542fa
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      archivebot-high-memory

+ 1
- 1
archivebot-high-memory 查看文件

@@ -1,3 +1,3 @@
#!/bin/bash
# Find high memory usage ArchiveBot jobs
{ echo "PID RSS JOBID"; ps -C wpull --format 'pid,rss,cmd' --no-headers | sed 's,^\s*,,; s,/usr/bin/python3.*/data/[^/]\+/\([0-9a-z]\+\)/wpull\.log.*$,\1,'; } | column -t
{ echo "PID RSS JOBID"; ps -C wpull --format 'pid,rss,cmd' --no-headers | sed 's,^\s*,,; s,^\([0-9]\+ [0-9]\+ \).*/data/[^/]\+/\([0-9a-z]\+\)/wpull\.log.*$,\1\2,'; } | column -t

Loading…
取消
儲存