j***y 发帖数: 2074 | 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 | x******g 发帖数: 3952 | 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 : ?
| o**v 发帖数: 1662 | 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 : ?
|
|