- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get the environment variable value using re...
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
Forums
Discussions
Discussions
Discussions
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
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
07-17-2008 04:22 AM
07-17-2008 04:22 AM
how to get the environment variable value using remsh
I am trying to execute remsh from hpunix to linux environment. it is working fine for other display commands but not for displaying or using environment variable.
could anyone help me how to access the env variable through remsh.
remsh usstuetl01 -l infa851 -n "echo $LD_LIBRARY_PATH"
This is the one i am trying. Linux is having bash as the default here.
Could anyone help us.
regards,
sanwin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 04:27 AM
07-17-2008 04:27 AM
Re: how to get the environment variable value using remsh
Read the user profiles
. .bash_profile
This will source the profile and put variables in memory.
You probably want to remesh (terrible insecure tool to use, ssh is better), running a script that will allow you to set and control your environment variables.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 04:56 AM
07-17-2008 04:56 AM
Re: how to get the environment variable value using remsh
$remsh linuxhost -l infa851 -n /informatica/etlinfa851/PowerCenter8.5.1/server/bin/pmcmd pingservice -sv Int_JDI_Prod851 -d Dom_JDI_Prod851
ERROR:
error while loading shared libraries: libpmasrt.so: cannot open shared object file: No such file or directory
So i doubt that pmcmd requires some env variable setting which itis not able to refer.
Please comment!!
thanks!!
regards,
sanwin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 05:09 AM
07-17-2008 05:09 AM
Re: how to get the environment variable value using remsh
Linux usually has "bash" as the default shell. Because bash's rules for executing login scripts are a bit strange, it's not easy to set up environment variables for non-interactive shell sessions. (A session is non-interactive when you specify the command to run at the remote host in the remsh command.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 06:03 AM
07-17-2008 06:03 AM
Re: how to get the environment variable value using remsh
ERROR:
FATAL ERROR during initialization:
Error initializing /informatica/pmlocale.bin. Make sure the environment variable INFA_HOME is defined and set to where Informatica products are installed.
Application terminated.
Any comments!!
regards,
sanwin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2008 08:15 AM
07-17-2008 08:15 AM
Re: how to get the environment variable value using remsh
thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2008 12:37 AM
07-18-2008 12:37 AM
Re: how to get the environment variable value using remsh
The problem with the above command is that it echoes $LD_LIBRARY_PATH from your current system, not usstuetl01. You need to put that in single quotes or use "\$".