- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help with TERM command
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
05-01-2003 05:22 AM
05-01-2003 05:22 AM
TERM="$TERM=$command" exec rlogin "$host" -l "$user"
This line works, for example I can perform top on server hostb with
TERM=wyse60=top exec rlogin hostb -l usera
My question is can anybody explain how/why this command works? I ha ve looked at the man page for TERM and this doesn't really help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2003 05:36 AM
05-01-2003 05:36 AM
Re: Help with TERM command
could you attach it if it is long or paste it if it is not?
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2003 05:37 AM
05-01-2003 05:37 AM
SolutionThe appropriate value for 'TERM' is usually derived during the login process. If you examine '/etc/profile' for instance, you will see that the value is selected based on a dialog with the terminal device with 'ttytype'.
The concept of the 'terminfo(4) database is to define sequences of characters necessary to elicit a particular behavior for a particular terminal type. For example, the sequence of characters necessary to enable text highlighting may differ for a 'vt100' terminal versus a 'wyse' one. In lieu of an application having to define every sequence of control to do simple text enhancements, for instance, the application can leverage 'tput' in order to present the appropriate controls to the particular device to affect the intended function.
Have a futher look at the man pages for 'terminfo(4), 'tput(1), and 'ttytype(1)'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2003 05:38 AM
05-01-2003 05:38 AM
Re: Help with TERM command
The commad is taking the TERM that you specified and using it on the server you are rlogin to.
It saves doing :-
rlogin hostb
TERM=wyse60
usera
top
The Line
TERM="$TERM=$command" exec rlogin "$host" -l "$user"
Is asking for the four variables and taking then into the command structure it is all encompassed in one.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2003 05:52 AM
05-01-2003 05:52 AM
Re: Help with TERM command
I don't really understand the TERM="$TERM=$command" part.
# TERM="wyse60=top" exec rlogin
when i try the above command with proper hostname and user, i get the following after i login -
Type wyse=top unknown.
I believe TERM="$TERM=$command" is a typo.
Mark that's why i thought it'd be useful if you'd paste out/attach the script.
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2003 01:40 AM
05-02-2003 01:40 AM
Re: Help with TERM command
Can you please post the full script.
Paula