i want to write script inside the script i will do many commands that require to be root like
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install eclipse
but i want to write the password just one time
i tried to write in top
sudo su
to run as root but it stop the script so what i can so to write the password