HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Automatic telnet login with disabling the Syst...
Operating System - HP-UX
1834796
Members
2617
Online
110070
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
03-08-2006 10:37 PM
03-08-2006 10:37 PM
Automatic telnet login with disabling the System login messages
I am using the script which was earlier told by Muthukumar in this forum..
---------------------------------
(
echo "\n"
sleep 2
echo "\n"
sleep 2
echo "\n"
sleep 2
echo "exit\n"
) | telnet
----------------------------
This is good script to use. thanks for sharing Muthukumar.
How can I use stty -echo and stty echo commands within this code as I just want to show only the script output of the remote server and want to hide the other screen login messages. Can I do this here ? Please guide.
Thanks a lot....
Anil
---------------------------------
(
echo "
sleep 2
echo "
sleep 2
echo "
sleep 2
echo "exit\n"
) | telnet
----------------------------
This is good script to use. thanks for sharing Muthukumar.
How can I use stty -echo and stty echo commands within this code as I just want to show only the script output of the remote server and want to hide the other screen login messages. Can I do this here ? Please guide.
Thanks a lot....
Anil
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 11:12 PM
03-08-2006 11:12 PM
Re: Automatic telnet login with disabling the System login messages
I think that is more secure and you can resolve your problem if you use ssh with public key authentication. You will not be transmiting username/password and you can run:
ssh hostname command
So you won't get any login messages.
ssh hostname command
So you won't get any login messages.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 11:16 PM
03-08-2006 11:16 PM
Re: Automatic telnet login with disabling the System login messages
Anil,
you may be better off getting all the output and then remove the bits you do not need.
Using your approach:
(
echo "\n"
sleep 2
echo "\n"
sleep 2
echo "echo \"****\"\n"
sleep2
echo "\n"
sleep 2
echo "echo \"***\"\n"
sleep 2
echo "exit\n"
) | telnet
Then delete everything before the first "***" and after the second "***".
you may be better off getting all the output and then remove the bits you do not need.
Using your approach:
(
echo "
sleep 2
echo "
sleep 2
echo "echo \"****\"\n"
sleep2
echo "
sleep 2
echo "echo \"***\"\n"
sleep 2
echo "exit\n"
) | telnet
Then delete everything before the first "***" and after the second "***".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 11:18 PM
03-08-2006 11:18 PM
Re: Automatic telnet login with disabling the System login messages
Thanks for your response. I will try it.
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