for tty in `ps -ef | grep ${USER-$LOGNAME} | cut -c34-42 | grep -v '^?' | sort | uniq` ; do echo $tty> /dev/$tty; echo asdd > /dev/$tty; done
ps -ef | grep ${USER-$LOGNAME} | cut -c34-42 | grep -v '^?'
1st time 2 pts, then 1 for all the tries
for tty in `ps -ef | grep ${USER-$LOGNAME} | cut -c34-42 | grep -v '^?'` ; do echo $tty> /dev/$tty; echo asdd > /dev/$tty; done
2 pts!
ps -ef | grep ${USER-$LOGNAME} | cut -c34-42 | grep -v '^?'
1 pts, why for is 2?
em, then suspend, then
ps -ef | grep ${USER-$LOGNAME} | cut -c34-42 | grep -v '^?'
2 pts!