Compare commits
No commits in common. "947b903b34ceda67404c4670e381940cd026d5a2" and "b10ad789ac3ced2aa02011db6dbd654083c3b8da" have entirely different histories.
947b903b34
...
b10ad789ac
@ -1,8 +0,0 @@
|
||||
#!/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
|
||||
Loading…
Reference in New Issue
Block a user