From fed66542fa720330faa8890a8514303a7f8e2115 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 16 Oct 2019 11:36:50 +0000 Subject: [PATCH] Support python3 in any directory instead of just /usr/bin --- archivebot-high-memory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebot-high-memory b/archivebot-high-memory index 5b07b1c..0111289 100755 --- a/archivebot-high-memory +++ b/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