Sponsored Content
Full Discussion: Pbrun command problem
Top Forums Shell Programming and Scripting Pbrun command problem Post 302300036 by saurabhjigr8 on Monday 23rd of March 2009 03:56:25 AM
Old 03-23-2009
Hi,
The first solution that u provided will work for normal scripts but not for pbrun command.Second one is right but i don't want to use expect.any other solution
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

problem with output of find command being input to basename command...

Hi, I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script. I am planning to do like this: if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies

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

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

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

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

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

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

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

10. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
CGELS(l)								 )								  CGELS(l)

NAME
CGELS - solve overdetermined or underdetermined complex linear systems involving an M-by-N matrix A, or its conjugate-transpose, using a QR or LQ factorization of A SYNOPSIS
SUBROUTINE CGELS( TRANS, M, N, NRHS, A, LDA, B, LDB, WORK, LWORK, INFO ) CHARACTER TRANS INTEGER INFO, LDA, LDB, LWORK, M, N, NRHS COMPLEX A( LDA, * ), B( LDB, * ), WORK( * ) PURPOSE
CGELS solves overdetermined or underdetermined complex linear systems involving an M-by-N matrix A, or its conjugate-transpose, using a QR or LQ factorization of A. It is assumed that A has full rank. The following options are provided: 1. If TRANS = 'N' and m >= n: find the least squares solution of an overdetermined system, i.e., solve the least squares problem minimize || B - A*X ||. 2. If TRANS = 'N' and m < n: find the minimum norm solution of an underdetermined system A * X = B. 3. If TRANS = 'C' and m >= n: find the minimum norm solution of an undetermined system A**H * X = B. 4. If TRANS = 'C' and m < n: find the least squares solution of an overdetermined system, i.e., solve the least squares problem minimize || B - A**H * X ||. Several right hand side vectors b and solution vectors x can be handled in a single call; they are stored as the columns of the M-by-NRHS right hand side matrix B and the N-by-NRHS solution matrix X. ARGUMENTS
TRANS (input) CHARACTER = 'N': the linear system involves A; = 'C': the linear system involves A**H. M (input) INTEGER The number of rows of the matrix A. M >= 0. N (input) INTEGER The number of columns of the matrix A. N >= 0. NRHS (input) INTEGER The number of right hand sides, i.e., the number of columns of the matrices B and X. NRHS >= 0. A (input/output) COMPLEX array, dimension (LDA,N) On entry, the M-by-N matrix A. if M >= N, A is overwritten by details of its QR factorization as returned by CGEQRF; if M < N, A is overwritten by details of its LQ factorization as returned by CGELQF. LDA (input) INTEGER The leading dimension of the array A. LDA >= max(1,M). B (input/output) COMPLEX array, dimension (LDB,NRHS) On entry, the matrix B of right hand side vectors, stored columnwise; B is M-by-NRHS if TRANS = 'N', or N-by-NRHS if TRANS = 'C'. On exit, B is overwritten by the solution vectors, stored columnwise: if TRANS = 'N' and m >= n, rows 1 to n of B contain the least squares solution vectors; the residual sum of squares for the solution in each column is given by the sum of squares of elements N+1 to M in that column; if TRANS = 'N' and m < n, rows 1 to N of B contain the minimum norm solution vectors; if TRANS = 'C' and m >= n, rows 1 to M of B contain the minimum norm solution vectors; if TRANS = 'C' and m < n, rows 1 to M of B contain the least squares solution vectors; the residual sum of squares for the solution in each column is given by the sum of squares of elements M+1 to N in that column. LDB (input) INTEGER The leading dimension of the array B. LDB >= MAX(1,M,N). WORK (workspace/output) COMPLEX array, dimension (LWORK) On exit, if INFO = 0, WORK(1) returns the optimal LWORK. LWORK (input) INTEGER The dimension of the array WORK. LWORK >= max( 1, MN + max( MN, NRHS ) ). For optimal performance, LWORK >= max( 1, MN + max( MN, NRHS )*NB ). where MN = min(M,N) and NB is the optimum block size. If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA. INFO (output) INTEGER = 0: successful exit < 0: if INFO = -i, the i-th argument had an illegal value LAPACK version 3.0 15 June 2000 CGELS(l)
All times are GMT -4. The time now is 11:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy