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
发信人: 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