InigoMontoya
IS-IT--Management
I have a script that needs to run commands under different users. I thought all I had to do was...
as root...
su - $username0
command
command
exit
su - $username1
command
command
exit
instead of running the scripts inside the new shell it waits until the shell exits then the commands execute.
I need them to execute inside the new shell. Please help...TIA.
as root...
su - $username0
command
command
exit
su - $username1
command
command
exit
instead of running the scripts inside the new shell it waits until the shell exits then the commands execute.
I need them to execute inside the new shell. Please help...TIA.