You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Optional ~/.showiotop/showiotop_col.txt to change default column 9, since there are various versions of iotop out there. 0 Means do nothing (e.g., if iotop is not granted sudo, see below).
# Obviously needs iotop, and add (with your <user>)
# ## Allow root to run any commands anywhere”)
# <user> ALL=(ALL) NOPASSWD:/usr/bin/iotop
# to /etc/sudoers
colno=9
if [[ -f ~/.showiotop/showiotop_col.txt ]]
then
colraw=`cat ~/.showiotop/showiotop_col.txt`
re='^[0-9]+$'
if ! [[ $colraw =~ $re ]]
then
echo "~/.showiotop/showiotop_col.txt needs to be a nonnegative integer" >&2; exit 1