shell脚本read -t 超时输入测试
摘要:
[root@server0 shellStudy]# cat timeout.sh #!/bin/bash TIMEOUT=3 #超时间隔 echo "What is your name?" echo "Quickly now, you only have $ITMEOUT secconds to answare!" read name if [ -z "$name" ] #未输入任何值 t... 阅读全文
posted @ 2018-03-12 16:34 遠離塵世の方舟 阅读(2561) 评论(0) 推荐(0) 编辑