smirnoff76
October 3rd, 2008, 04:36 PM
I have been using ubuntu now for about 2 months and I have just put together my very first script which is simply a script doing an update of the apt source and then installing various software packages finishing off with an autoclean.
I am wanting to put in the script an option that prompts the user for input basically saying "do you wish to continue, press (Y) for yes and (N) for no)" obviously hitting n would end the script dead and pressing Y would carry it on to the next section of the script i.e. installing the packages, the problem is I dont know how to script the user input part can anyone help??
Thanks in advance
I am wanting to put in the script an option that prompts the user for input basically saying "do you wish to continue, press (Y) for yes and (N) for no)" obviously hitting n would end the script dead and pressing Y would carry it on to the next section of the script i.e. installing the packages, the problem is I dont know how to script the user input part can anyone help??
Thanks in advance