diff --git a/dot_dotfiles/scripts/.keep b/dot_dotfiles/scripts/.keep new file mode 100644 index 0000000..e69de29 diff --git a/dot_dotfiles/scripts/executable_top.process.sh b/dot_dotfiles/scripts/executable_top.process.sh new file mode 100644 index 0000000..5b69741 --- /dev/null +++ b/dot_dotfiles/scripts/executable_top.process.sh @@ -0,0 +1,8 @@ +#!/bin/bash +while true +do + # ps --sort=pcpu -eo cmd -h | head -n 1 | cut -b -15 | xargs + # ps -eo cmd --sort=-%cpu -A --no-headers | head -n 1 | sed -E "s/(\/.+)+\/(.+)/\2/" | cut -b -15 | xargs + ps -eo cmd --sort=-%cpu -A --no-headers | head -n 1 | cut -f 1 -d " " | grep -Eo "[^\/]+" | tail -n 1 + sleep 5 +done