1832990 Members
2419 Online
110048 Solutions
New Discussion

Reflection X doubt...

 
SOLVED
Go to solution
Rafael Mendonça Braga
Regular Advisor

Reflection X doubt...

Hello Guys... Using Hp-Ux 11i.
I have created this operator menu:

--------------------------------------------------------------
Operation Menu

( 1 ) Oracle

( 2 ) Commands

( 3 ) OpenView

( 9 ) Exit


OPTION:
--------------------------------------------------------------

When I "telnet" from a vt100 terminal it works fine, but I can't use the OpenView option.
To use it, I have to log with a ReflectionX session, but when I log from a ReflectionX session, this menu is not loaded...

Look my .profile:
# @(#)B.11.11_LR

# Default user .profile file (/usr/bin/sh initialization).

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" eof "^D"
stty hupcl ixon ixoff
tabs

# Set up the search paths:
PATH=$PATH:.

# Set up the shell environment:
set -u
trap "echo 'logout'" 0

# Set up the shell variables:
EDITOR=vi
export EDITOR

# Set up the DISPLAY Variable:
MAQUINA=`who -mR |awk '{print $6}' |cut -b 2-28 |cut -f 1 -d ")"`
ADDRESS=`nslookup $MAQUINA |grep -i address |tail -1 |awk '{print $2}'`
export DISPLAY=$ADDRESS:0.0

#Set The Start Menu
/home/ssboper/scripts/menu_principal
exit

----------------------------------------------------------------------

And my .dtprofile:
DTSOURCEPROFILE=true
----------------------------------------------------------------------

How can I set it to run my menu at login with Xsessions?!

Thanks,

Rafael M. Braga
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: Reflection X doubt...

Perhaps you could set the user's shell in /etc/passwd to be " /home/ssboper/scripts/menu_principal"?


Pete

Pete
Rick Garland
Honored Contributor

Re: Reflection X doubt...

When logging in with ReflectionX you are invoking an X GUI interface. This is calling the .dtprofile


When using the vt100 you are logging via a text based environment. You are using the .profile.

Look at the .dtprofile. At the bottom you will see the following. This will allow you to change the sourcing of the .dtprofile or the .profile. Uncomment and change to .false'.

#
# If $HOME/.profile (.login) has been edited as described above, uncomment
# the following line.
#
# DTSOURCEPROFILE=true
~
Rick Garland
Honored Contributor

Re: Reflection X doubt...

My mistake, just uncomment the liner leaving the value as 'true'.
Victor BERRIDGE
Honored Contributor

Re: Reflection X doubt...

Hi,
I dont see why it wont work...
How do you connect yourself with ReflectionX ?
Did you enter your session by xdmcp which of course will not read your .profile?

All the best
Victor

What version? Beware I tried Rx13 and after a little while deinstalled it because I fell on a few (Big) bugs I reported to WRQ...

So for Info for all:
Product: Reflection X
Summary: After install I cannot get the AltGr key to work (Nor tild, pipe...)

Hi Victor,

As a follow-up, I wanted to inform you that this problem is indeed a bug
that will be fixed in the next minor release.

This patch is planned to be released around mid-september.

Let me know if this issue is urgent to you and in this case, I can
provide you with a test fix (patch to verify if the problem is actually
solved, meant for test enviroments).

Thank you for contacting WRQ European Technical Support.
DCE
Honored Contributor

Re: Reflection X doubt...

If you have DTSOURCEPROFILE=true uncommented, and it still does not load te profile, you can call your $HOME/.profile as the last line of the .dtprofile. I have had to do this on a couple of systems to get it to work
Rafael Mendonça Braga
Regular Advisor

Re: Reflection X doubt...

Pete Got the right way!!!

Thanks a lot guys!!
Thanks very much Pete!

Rafael M. Braga