I have written many scripts for the installation and configuration of a server . All the scripts are interactive scripts. Yes or no interactive questions like
You are about to configure rootvg on LAB992 running 6.1
Do you want to continue? (Y/N)
If i press 'y' its gonna continue if 'n' its gonna continue with the next script. But if its a different letter ie i fat finger it , it aborts.
You are about to configure rootvg on LAB992 running 6.1
Do you want to continue? (Y/N)
t
Ok - we are aborting now
If i fatfinger it, i wanted the script to take a loop back and ask the same question. I tried to search for it but couldnt.
thanks
You are about to configure rootvg on LAB992 running 6.1
Do you want to continue? (Y/N)
If i press 'y' its gonna continue if 'n' its gonna continue with the next script. But if its a different letter ie i fat finger it , it aborts.
You are about to configure rootvg on LAB992 running 6.1
Do you want to continue? (Y/N)
t
Ok - we are aborting now
If i fatfinger it, i wanted the script to take a loop back and ask the same question. I tried to search for it but couldnt.
thanks