I'm writing a shell script and have a problem with selection when I issue the command, is there a way to automatically choose a selection number one after a selection menue appear
Command
1-choice
2- choice
3-choice
Thanks
Sara
I'm writing a shell script and have a problem with selection when I issue the command, is there a way to automatically choose a selection number one after a selection menue appear
Command
1-choice
2- choice
3-choice
Thanks
Sara
Didn't quite get the requirement.
--ahamed
I have a shell script to automate a process
The command I'm using gives me 3 selection to choose from and wait for input from me.
Command
1- choice one
2- choice two
3- choice three
Please eneter your choice:
Im using this command in my script and my choice is always number one
Is there a way I can automate the selection to be one in my shell script
Check vgersh99 post in http://www.unix.com/shell-programming-scripting/220037-passing-value-variable-read-command-line-called-script.html
You can also try echo 1 | yourscript
--ahamed