Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a shell script(.sh file) which logs in to ubuntu server using ssh command. Once logged in i want to do the following commands:
sudo -i su web
I want to incorporate the above commands in the same .sh file. How do i do it? Thanks