|
Exit Shell Prompt after Pbrun
I have a script, which pbruns into another account.
I want to pbrun run into that account, and continue running all the commands in my script.
But instead, it pbruns into the account, and just gives me a shell prompt.. and stops there.
Only once i exit that shell prompt.. does it continue running the rest of the sciprt.
I have tried to run a command with the pbrun command (e.g. pbrun su - useraccount2 whoami).
But before it can execute the whoami command, it just gets stuck at the shell prompt.
I have tried to run the command in the background (with the &), I have tried to pass it with -b, -c, but nothing seems to work.
Any suggestions would be deeply appreciated!
|