avatar
Shell script problem? (转载)# Unix - 噫吁兮,危乎高哉
j*y
1
【 以下文字转载自 Programming 讨论区 】
发信人: johny (猴年马月), 信区: Programming
标 题: Shell script problem?
发信站: BBS 未名空间站 (Wed Aug 31 02:18:06 2005)
Environment: C Shell
A command will pop up a interactive menu to let user select one of the options
.
Assume the option is determined, how to wrap the command and the option into a
shell script that will run the command at one go without any input from users
?
Further problem: if the pop-up menu has a sub-menu, how to wrap the sub-menu
option together with the comm
avatar
x*g
2
Try expect?

options
a
users

【在 j***y 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 发信人: johny (猴年马月), 信区: Programming
: 标 题: Shell script problem?
: 发信站: BBS 未名空间站 (Wed Aug 31 02:18:06 2005)
: Environment: C Shell
: A command will pop up a interactive menu to let user select one of the options
: .
: Assume the option is determined, how to wrap the command and the option into a
: shell script that will run the command at one go without any input from users
: ?

avatar
o*v
3
try whiptail

options
a
users

【在 j***y 的大作中提到】
: 【 以下文字转载自 Programming 讨论区 】
: 发信人: johny (猴年马月), 信区: Programming
: 标 题: Shell script problem?
: 发信站: BBS 未名空间站 (Wed Aug 31 02:18:06 2005)
: Environment: C Shell
: A command will pop up a interactive menu to let user select one of the options
: .
: Assume the option is determined, how to wrap the command and the option into a
: shell script that will run the command at one go without any input from users
: ?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。