The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2008
ishanc ishanc is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 1
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!