What exactly do mean by fix and run?
However, there are some errors:
Specify the shell in the first line of the script (common are bash and sh):
The while loop will execute never or forever depending on
(may be not 15 initially and when it is never changed inside the loop).
elif firefox;then must be fixed. There is probably no variable
firefox and there should be space between the semicolon and
There is a
missing (before the
from the while)
Finally save your script with the extension .sh
(EDIT: not necessary but best practice) and make it executable:
chmod 775 <script-name>