Hi there I got a question about the bash shell script and sudo.
Normally I would google for help, but then I dont know what am i supposed to search for.
e.g. i am under root user
sudo -u oracle sqlplus user/pass <createuser.sql
sudo -u oracle sqlplus user/pass <dosomething.sql
my understanding is the sudo -u user let us execute a command on a specific user.
For my above scenario,
is there a way to modify my bash file so that upon the oracle user finishing its "sqlplus user/pass <createuser.sql" statement,
my bash file will continue to execute?