- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Strange behavior for GNU Netcat on HP-UX
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
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
тАО09-13-2004 02:25 AM
тАО09-13-2004 02:25 AM
Strange behavior for GNU Netcat on HP-UX
Has anyone else seen the following behavior or know of workarounds?
GNU Netcat, in my previous experience, will terminate immediately when stdin finishes. But, when I compiled netcat-0.7.1 for HP-UX (10.20) the program works but does not terminate without a control-C.
Expected behavior is seen when netcat listens on HP host and Linux host sends following:
echo hello | nc
hello is echo'd on the server/listening side and then netcat on both sides exit.
Unexpected behavior is seen when the roles are reversed, listener is Linux and sender is HP-UX:
echo hello | nc
hello is echo'd on the Linux listening side, however, neither end subsequently drops the connection.
Any ideas? I want the original (at least from what I've seen) behavior on HP-UX sender side so I can accurately time a transfer.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2004 02:40 AM
тАО09-13-2004 02:40 AM
Re: Strange behavior for GNU Netcat on HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2004 02:53 AM
тАО09-13-2004 02:53 AM
Re: Strange behavior for GNU Netcat on HP-UX
-c "close connection on EOF from stdin"
That causes it to work on the sending side as it does by default in Redhat Linux 7.2.
I'd read the man page and the info page, neither discussed the -c option. But then I ran nc --help on the HP side and saw a more complete list of options. -c does the trick.
Thanks again, -B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2015 03:31 AM
тАО11-05-2015 03:31 AM
Re: Strange behavior for GNU Netcat on HP-UX
How did you compile netcat on HP-UX 10.20?
Could you write little more about this or provide some recipe for this?