Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想向用户询问一些数据,如果不活动,则退出。但whiptail没有这样的选择--timeout。我尝试过类似的东西
whiptail
--timeout
timeout 5 whiptail --inputbox "enter your name" 10 20
但是会在终端窗口中留下混乱。那么有什么方法可以让shell中的whiptail超时吗?
或对话框 --timeout 5 --inputbox "输入你的名字" 10 2 :