Sending values to autoprompt of pbrun


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sending values to autoprompt of pbrun
# 1  
Old 04-07-2013
Sending values to autoprompt of pbrun

Hi

I am writing a shell scrpt to call pbrun to change user like below
Code:
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,
Code:
Reason for ID change:


Is there a way to send the value form the script for the auto prompt ?

Please advice.
# 2  
Old 04-07-2013
Not sure if you could use redirection here - either to a file, or a here document...
# 3  
Old 04-07-2013
Usually the prompt is to make sure the reason is logged in as the pbrun su is for a super user...so can the reason be sent from the shell script or any way to automate this'?
# 4  
Old 04-07-2013
Give it a try. As I don't have pbrun nor know anything about it, I can't help further.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automating pbrun /bin/su not working, whenever manually it is working using putty

I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below. . ~/.bash_profile pbrun /bin/su - content c h 1 hpsvn up file path I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies

2. 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

3. Shell Programming and Scripting

How to automate pbrun login through script?

Hi All, I need information regarding how to automate the pbrun process in script in Linux. Example sample script below, #!bin/sh /usr/xyz/pbrun testusr -password testpwd testusr is username for pbrun and testpwd is password for pbrun. Im not sure if it is correct way to invoke pbrun in... (2 Replies)
Discussion started by: Pravs4info
2 Replies

4. 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

5. 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

6. Shell Programming and Scripting

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... (2 Replies)
Discussion started by: alamurus
2 Replies

7. Shell Programming and Scripting

sending field values in columns to output file

Hi, I am trying to send output from a shell scrip to a txt file in a colum format. I have all I can and I dont seem to understand why the results from one one particular file keeps going to the next line. How can I force all to be in one line Please see code and output below The is... (0 Replies)
Discussion started by: asemota
0 Replies

8. Shell Programming and Scripting

Sending values to command prompt

hi all, in a ksh script, how do i send username and password to the command prompt ?? also is it possible to substitute the password as **** so people running the script cant see the actual password ?? thanks in advance. (7 Replies)
Discussion started by: cesarNZ
7 Replies

9. 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

10. 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
Login or Register to Ask a Question