cat /usr/local/sbin/TOP
clear
echo `date` INFO: Showing any processes with videos open with ps aufx
# use LSOF insted .. ps aufx|grep -iaE "(\.avi|\.mpg|\.mov|\.flv|\.wmv|\.asf|\.mpeg|\.m4v|\.divx|\.mp4|\.mkv|\.sub|\.iso|\.264|\.vob|\.srt|\.img|\.sfv)" ps aufx|grep -iaE "(\.avi|\.mpg|\.mov|\.flv|\.wmv|\.asf|\.mpeg|\.m4v|\.divx|\.mp4|\.mkv|\.sub|\.iso|\.264|\.vob|\.srt|\.img|\.sfv)"
lsof -w | awk '{for (i = 1; i < 9; i++) $i = ""; sub(/^ */, ""); print}'|sort -u | grep -iaE "(\.avi|\.mpg|\.mov|\.flv|\.wmv|\.asf|\.mpeg|\.m4v|\.divx|\.mp4|\.mkv|\.sub|\.iso|\.264|\.vob|\.srt|\.img|\.sfv)" | grep -vE "(Beakman|\.movie)"
sleep 8
pkill -f tmux
tmux new-session -s asdf -n myWindow -d 'btop'\; \
split-window -d 'nethogs -v 3 -p'\; \
split-window -d 'intel_gpu_top'\; \
select-pane -t 0 \; \
resize-pane -y 24 \; attach-session
Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.
The HPR Website Design is released to the Public Domain.