- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I export local environment to a remote ses...
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
тАО06-19-2002 01:59 AM
тАО06-19-2002 01:59 AM
I also set $STATION to the terminalname while login, it would help, if i could export this to the remote session.
Thanks in advance
Lothar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 02:05 AM
тАО06-19-2002 02:05 AM
Re: How can I export local environment to a remote session ?
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 03:34 AM
тАО06-19-2002 03:34 AM
Re: How can I export local environment to a remote session ?
tty is a good idea, but tomorrow my tty assigned to the same PC / Terminal will be another than today. I'm looking for a way to make the remote host know the users PC.
Regards Lothar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 03:46 AM
тАО06-19-2002 03:46 AM
SolutionYou could push the variables you want into a file on eht elocal machine then when the user logs in to the remote machine the profile could attempt to "grab" (rcp?)that file and source it in.
echo $STATION > ./myXtraprofile
rlogin remote
remote server profile grabs file and sources it in.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 05:40 AM
тАО06-19-2002 05:40 AM
Re: How can I export local environment to a remote session ?
very good idea for creating an xrlogin shellscript. So I can export whatever i want to the remote host. After the rcp there should be run a remsh rm command for the file on the local host
Regards Lothar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 08:48 AM
тАО06-19-2002 08:48 AM
Re: How can I export local environment to a remote session ?
During login, this will provide most of the information you need:
$ who -mu | read username terminal month day time idle pid host
The other piece of information you seek is the station identifier from the remote client. Try passing this along as part of the terminal emulation name:
From node1:
$ TERM=${TERM}:${STATION} rlogin node2
On node2, in /etc/profile, before it tries to guess the emulation:
STATION=${TERM#*:}
TERM=${TERM%:*}
export TERM STATION
This can also work using the answerback feature available with most terminal emulators that do both telnet and rlogin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2002 11:03 PM
тАО06-19-2002 11:03 PM
Re: How can I export local environment to a remote session ?
I did the scripting with Harry's hint yesterday and it works fine.
Now i tested your solution and it works fine too, and it's much easier to handle because it don't need rcp or remsh. I didn't knew the feature of setting a variable in a shell-commandline.
Thanks again
Lothar