- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to force a source of .profile for hpterm with ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 01:07 PM
тАО12-09-2008 01:07 PM
How to force a source of .profile for hpterm with -e option used?
(/usr/bin/X11/hpterm -ls -fn 6x13 -sb -display %IP#% -name %T% -e
However, since we are using the -e option, hpterm will not consider this is a login shell and thus not run the .profile. When using rlogin, it would source the profile.
I tried the following:
1) .dtprofile does have the last line uncommented but it doesn't help. I put a test echo in that file and it too is not being sourced.
2) I created a .Xdefaults and put in *LoginShell:True
but that didn't help
3) If I take out the -e command then I see .profile, .dtprofile, and .kshrc all being sourced properly
Any help would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 01:52 PM
тАО12-09-2008 01:52 PM
Re: How to force a source of .profile for hpterm with -e option used?
is it really enclosed in ()?
the initial login (via ssh) should have run the profiles. anything at the command line would then inherit whatever the profile set, or at least my limited testing indicates that to be the case.
have you thought about substituting a script for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 02:00 PM
тАО12-09-2008 02:00 PM
Re: How to force a source of .profile for hpterm with -e option used?
# If $HOME/.profile (.login) has been edited as described above, uncomment
# the following line.
#
#DTSOURCEPROFILE=true
Also, xterm works better than hpterm ( IMHO ) unless you are trying to do something really specific.
(/usr/bin/X11/xterm -fn 6x13 -sb -ls -display %IP#% -name %T% &)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 02:03 PM
тАО12-09-2008 02:03 PM
Re: How to force a source of .profile for hpterm with -e option used?
To clarify, reflection is a X windows emulator like Exceed and I am using ssh as the protocol to connect to the server. The user should never get a blank xterm window. The goal is to automatically launch the application when the user clicks on the reflection session which then spawns ssh2 to connect and then an xterm using the -e option to launch an app.
DTSOURCEPROFILE=true is already uncommented.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2008 03:48 PM
тАО12-09-2008 03:48 PM
Re: How to force a source of .profile for hpterm with -e option used?
what happens if you set /bin/sh instead of
With the rlogin method, how were you starting the app, as the last thing in the profile or ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 07:07 AM
тАО12-10-2008 07:07 AM
Re: How to force a source of .profile for hpterm with -e option used?
With rlogin, reflection still provided me the ability to specify a program to run once the rlogin was succesfully which was the
I am now trying to create a wrapper script that will manually source the .profile and then run the app but apparently the app needs settings in /etc/profile as well so I am trying to source that too but for some reason the xterm is getting destroyed when sourcing /etc/profile. I am still investigating but this feels like a hack.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 07:27 AM
тАО12-10-2008 07:27 AM
Re: How to force a source of .profile for hpterm with -e option used?
> I am now trying to create a wrapper script that will manually source the .profile and then run the app but apparently the app needs settings in /etc/profile as well so I am trying to source that too but for some reason the xterm is getting destroyed when sourcing /etc/profile.
Instead of trying to source the '.profile', collect every variable setting you need into a standalone file. Modify your existing '.profile' to source that. There is nothing to prohibit this approach. Now you have reusable code since you can source the standalone file within any script you want.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 09:48 AM
тАО12-10-2008 09:48 AM
Re: How to force a source of .profile for hpterm with -e option used?
I'm getting confused here.."reflection session" is a shortcut on the windows desktop, an icon is CDE after reflection starts or what?
ssh should allow you to specify a command as well (I would think)...taking the xterm command out of the picture..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 10:07 AM
тАО12-10-2008 10:07 AM
Re: How to force a source of .profile for hpterm with -e option used?
I just got off the phone with reflection and they gave me a workaround of using a different product of theirs that allows to create a terminal window (not xterm) via ssh and then run a macro and that macro is just typing in the command for my app. It does seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2008 10:16 AM
тАО12-10-2008 10:16 AM
Re: How to force a source of .profile for hpterm with -e option used?
Then start xclock...it should have a red background. If not, check permissions for .Xdefaults and $HOME.
Bill Hassell, sysadmin