/
githubmirror
/
lsof
Обзор
Документация
Войти
/
githubmirror
/
lsof
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.96.1
tests/case-20-repeat-count.bash
15 строк
269 B
Masatake YAMATO
Allow to specify max iteration count to -r option
06 июл 2019, 21:15
06 июл 2019, 21:15
51c4bdd
Код
Авторство
О чём код?
name=$(basename $0 .bash) lsof=$1 report=$2 base=$(pwd) if [ $(${lsof} -r 1c1 -p $$ | tee -a $report | grep -e '=======' | wc -l) != 1 ]; then exit 1 fi if [ $(${lsof} -r 1c5 -p $$ | tee -a $report | grep -e '=======' | wc -l) != 5 ]; then exit 1 fi exit 0