- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX telnet command is not getting termianted...
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
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
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
11-14-2017 02:29 AM
11-14-2017 02:29 AM
HP-UX telnet command is not getting termianted while redirecting the content
Hi All,
I am preparing a script to check if telnet connectivity is available on the server. Scrit works fine for other OS(Redhat linux and Solaris).
I'm trying to get the output(banner message) to a file and I will check for a keyword "Escape" if the word exists then telnet is enabled and if not is is disabled.
command is
telnet `"hostname"` < "dummy.txt" 2>&1 > telnet.txt
Output is getting redirected to telnet.txt but the command is not getting terminted , it stops like below,
# telnet `"hostname"` < "dummy.txt" 2>&1 > telnet.txt
Telnet TERMINAL-SPEED option ON
then I need to open an another session to kill it..
But I'm getting required output in telnet.txt (word "Escape")
# telnet `"hostname"` < "dummy.txt" 2>&1 > telnet.txt
Telnet TERMINAL-SPEED option ON
Killed
# cat telnet.txt
Trying...
Connected to ussltcsnh5001.solutions.glbsnet.com.
Escape character is '^]'.
Local flow control on
HP-UX ussltcsnh5001 B.11.31 U ia64 (ta)
login:
Kindly help me to get this resolved.
-Antony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2017 06:56 PM
11-18-2017 06:56 PM
Re: HP-UX telnet command is not getting termianted while redirecting the content
What's in dummy.txt? Do you have "quit" in it?
Or perhaps: ~.
to close the connection.