HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I pass information while telnetting to ...
Operating System - HP-UX
1834253
Members
2185
Online
110066
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-14-2005 04:18 AM
02-14-2005 04:18 AM
How do I pass information while telnetting to another server?
I'm connecting with an X-terminal to one unix server, then telnetting to another. I need to pass some information, such as IP for setting the DISPLAY, to that final server during the telnet process.
Is there some way of sending info automatically (ie. without user intervention) during the telnet connection/login process? I don't have rcp or ssh capability, so I can't transfer a file which contains the info.
Any help would be appreciated. Thanks!
Is there some way of sending info automatically (ie. without user intervention) during the telnet connection/login process? I don't have rcp or ssh capability, so I can't transfer a file which contains the info.
Any help would be appreciated. Thanks!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 07:32 AM
02-14-2005 07:32 AM
Re: How do I pass information while telnetting to another server?
using telnet) no there isn't any way
using rlogin) rlogin sends the value of TERM, you can encode the value of TERM to what you want, but that also means you have to decode the value during your logon on the destination server.
using remsh) you can execute something like an hpterm which has an option for setting the display variable.
use the who command to tell which system you came from. in which case you could do something like,
here=$(hostname)
there=$(who -mu)
if [[ $here = "systemA" && $there = "systemB" ]] ;then
display=Xterminal:0.0
fi
etc.
using rlogin) rlogin sends the value of TERM, you can encode the value of TERM to what you want, but that also means you have to decode the value during your logon on the destination server.
using remsh) you can execute something like an hpterm which has an option for setting the display variable.
use the who command to tell which system you came from. in which case you could do something like,
here=$(hostname)
there=$(who -mu)
if [[ $here = "systemA" && $there = "systemB" ]] ;then
display=Xterminal:0.0
fi
etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2005 09:49 AM
02-14-2005 09:49 AM
Re: How do I pass information while telnetting to another server?
I'd really recommend putting in ssh - this would provide real easy solution...
If you just run "ssh -X servername" you'll automatically get an X connection in a pipe connected to your current display - but to a pseudoterm.
A bit difficult to explain (easier to understand once you've seen it), but this is one of the great features of ssh - X Windows pass-though.
If you just run "ssh -X servername" you'll automatically get an X connection in a pipe connected to your current display - but to a pseudoterm.
A bit difficult to explain (easier to understand once you've seen it), but this is one of the great features of ssh - X Windows pass-though.
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 12:24 PM
02-15-2005 12:24 PM
Re: How do I pass information while telnetting to another server?
One way of achieving this would be to create an expect script to carry out the telnet connection, export the desired TERM variable, then pass the session on to the user.
If you always use a particular terminal type, why don't you hard code it in the .profile on the final host?
If you always use a particular terminal type, why don't you hard code it in the .profile on the final host?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP