读书人

Linux Shell兑现人机交互

发布时间: 2013-03-21 10:08:17 作者: rapoo

Linux Shell实现人机交互
while true;dostty -icanon min 0 time 100echo -n "Automatic execute ten seconds after,Are you sure you want to start the task(yes or no)?"read Argcase $Arg inY|y|YES|yes) break;;N|n|NO|no) exit;;"") #Autocontinue break;;esacdone echoecho "others function..."

?

读书人网 >UNIXLINUX

热点推荐