Lines Matching refs:tty
7 name="pgrep -t <tty>"8 tty=`ps -x -o tty -p $$ | tail -1`9 if [ "$tty" = "??" -o "$tty" = "-" ]; then10 tty="-"13 case $tty in14 pts/*) ttyshort=`echo $tty | cut -c 5-` ;;15 *) ttyshort=`echo $tty | cut -c 4-` ;;23 pid=`pgrep -f -t $tty $sleep`