In bash, read has a -t option where you can specify a timeout. From the manpage: read [-ers] [-u fd] [-t timeout] [-a aname] [-p prompt] [-n nchars] [-d ...
確定! 回上一頁