Exit from Shell Prompt after Pbrun


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Exit from Shell Prompt after Pbrun
# 1  
Old 03-01-2011
Error Exit from Shell Prompt after Pbrun

I have a ksh script, which pbruns into another account.
I want to pbrun run into that account, and continue running all the engine commands(i.e setroot, setsite xxx, etc) 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 script.

I have tried to run a command with the pbrun command (e.g. pbrun –u hci tcsh ).

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!

Last edited by alamurus; 03-01-2011 at 08:24 AM..
# 2  
Old 03-01-2011
Code:
su - pbuser -c "nohup /path/pbrun -u hci tcsh &"

?
# 3  
Old 03-01-2011
Thanks for quick response, I do not have root access to run command su.

Insted ,I'm using Pbrun to login in to hci then run nning tool commands.

I have a starup script Since a reboot and root acces is required for test.
\
su - hci -c "setenv CL_INSTALL_DIR /Volumes/app/......."

Please suggest how to excute my main ksh commands after login into another account without getting into the prompt.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Zone console login prompt exit

Hi , I am not able to exit fom zone console login prompt. I have tried options like ~. ~~. and @. but it is not working fo me. Could someone Please help me on this. Thanks in Advance!! Regards, Laxxi (7 Replies)
Discussion started by: Laxxi
7 Replies

2. Shell Programming and Scripting

Sending values to autoprompt of pbrun

Hi I am writing a shell scrpt to call pbrun to change user like below pbrun su-otheruser but in solaris by default there ia autoprompt after using pbrun su which asks the following which is mandatory to enter the reason, Reason for ID change: Is there a way to send the value form... (3 Replies)
Discussion started by: prady184u
3 Replies

3. Shell Programming and Scripting

need help with pbrun su in shell script

Hello , I am logging in linux with my userName and using the pbrun su appName for changing permissions of files (owner of the files is appName). Now I am trying to do same within shell script but failing . Here is my code . #Function to change permission of a file fun_chmod(){ ... (0 Replies)
Discussion started by: RaviTej
0 Replies

4. Shell Programming and Scripting

How to exit prompt when starting a weblogic administration server remotely?

Hi, I am trying to start Weblogic Admin server using start-up script (./startWeblogic.sh) from a remote host using a different user. The server starts fine but prompt is stuck, it does not return Background: We have multiple admin servers in different environment and the requirement is all... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

5. Solaris

what is the difference between sudo and pbrun?

what is the difference between sudo and pbrun? i have seen people executing pbrun sudo su - what this means?? i know su - will try to switch to root user. what speciality pbrun gives to sudo when it is used along with sudo command? (2 Replies)
Discussion started by: chidori
2 Replies

6. UNIX for Dummies Questions & Answers

Auto-exit from telnet prompt

Hi, Hope all your are doing well. Need a suggestion from you. I am writing an automated shell script that will effectively check the telnet connectivity with different backends from present deployment server. Ideally, this script reads each backend hostname from a configuration file and fires... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

7. Shell Programming and Scripting

pbrun ssh -l servername

Hi, Can you plz help me in the below command! what is the pbrun command does with ssh pbrun ssh -l servername (0 Replies)
Discussion started by: lnviyyapu
0 Replies

8. AIX

different ulimits when 'pbrun' to user

Hi, we run an application called powerbroker that is providing a secured and logged access to functional IDs like root or oracle. Generally the functionality should not differ from a normal su - but I am right now experiencing some behaviour I cannot explain: when 2 different users are... (4 Replies)
Discussion started by: zxmaus
4 Replies

9. Shell Programming and Scripting

Pbrun command problem

Hi, I want to automate pbrun command in one of my project but the problem is when i am running pbrun command then it is asking for some input as identification no.I redirect that number through a file but it's not working. I didn't got any option for that to pass it as command line.Is there... (5 Replies)
Discussion started by: saurabhjigr8
5 Replies

10. Shell Programming and Scripting

How to get the exit satus of a command which I executed in sftp prompt

Hi All, I need the exit status of a command which is executed through sftp connection. Example: sftp user@host <<EOF mkdir /home/karteek/testing put /home/xyz.txt /home/karteek/testing EOF ------ In the above example, I need the exit status of the put command. Please help me. ... (2 Replies)
Discussion started by: Karteek
2 Replies
Login or Register to Ask a Question