The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

ksc_simple_respond or other way around.

SOLVED
Go to solution
Highlighted
Varun Singh
Regular Collector

ksc_simple_respond or other way around.

as soon as i connect to Oracle Apps, I have to enter a Choice
---------------------------------
$ su - sgpatch
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
sophpadb07.sungardrs.com
IP: 10.1.3.26 CZDEV1 SGPATCH
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged material.
If you are not using this information for the express purpose of performing
your job function please log out. Any review,retransmission,dissemination
or other use of,or taking of any action in reliance upon,this information
by persons or entities other than the intended recipient is prohibited.
If you received this in error,please contact the sender and delete the material
from any computer.
You have mail.
Select The Environment....
1 : SGPATCH - Database 10.2.0
2 : SGPATCH - Applications
Enter Your Choice
2
------------------------------------------
If i am writing a custom Object Types:

first i will connect to server using

ksc_connect_source_server

Now at this point of time, PPM keep on waiting to enter a choice and i have no way to handle this thing, one solution is to update .bash_profile.

My question is:

Is there any other way around or trick.. something like using ksc_simple_respond....

I know the usage of ksc_simple_respond but right at the login, you cannot use it..

Any suggestion is highly appreciated.

Arguing with a fool, proves there are two
4 REPLIES
Jim Esler
Honored Contributor
Solution

Re: ksc_simple_respond or other way around.

I assume you have your profile file set up to customize the session based on responses from the user that is logging in. You are right that the ksc_connect_xxx commands cannot deal with this. You can extend the profile to recognize PPM logins with conditional code like the following:

if [ $TERM != 'dumb' ] ; then

fi

You can see what value is passed as the terminal type in the log for a check of an environment configured for the server.
Varun Singh
Regular Collector

Re: ksc_simple_respond or other way around.

It worked with code like this
ksc_connect_dest_server DEST_BASE_PATH="[DEST_ENV.APP.SERVER_BASE_PATH]/[P.P_DEST_PATH]/[P.DEST_SUB_PATH]"
ksc_simple_respond ". $.profile" "Enter Your Choice" "2"


---They have hardcoded the $TERM and would never be "dumb"
Arguing with a fool, proves there are two
Varun Singh
Regular Collector

Re: ksc_simple_respond or other way around.

Found the solution for this.

ksc_simple_respond ". $.profile" "Enter Your Choice" "2"

reading the .profile after connecting and entering value as "2"
Arguing with a fool, proves there are two
Jim Esler
Honored Contributor

Re: ksc_simple_respond or other way around.

We are using PPM 6.0 SP 14. When using the Environment Check function, the following appears in the log for checking SSH2 connectivity. Note that PPM is explicitly using terminal type 'dumb'. I don't know where this is set or if it is configurable.

Initiating key exchange.
Succeeded in key exchange.
Authenticating user.
Succeeded in authenticating user.
Opening channel.
Attempting to negotiate the terminal type.
Sent a PTY request with terminal type dumb.
Succeeded opening channel.

I am glad to hear that the ksc_simple_respond command works for you. We have not been able make it work here but maybe your notes will get us past that point if the need arises again.
//Add this to "OnDomLoad" event