try(){
clear
timeout 0.2 man -P cat $1
re=$?
echo trying $1>>log.txt
echo result is $re>>log.txt
if [ ! $re -eq 127 ]; then
sleep 0.2
import -window osboxes@osboxes:~/Downloads/Parser\ Project\Code/iteration\ 3 iter3/$1.png
echo $1 captured>>log.txt
fi
}
Изman htop
:
F4, \
Incremental process filtering: type in part of a process command line and only
processes whose names match will be shown. To cancel filtering, enter the Filter
option again and press Esc.
Итак, как только вы запустите htop
, введите \test
и нажмите . Введите для фильтрации только команд, содержащих test
.