| Summary: | nc(1) does not exit after transfer (should be documented) | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Robert <rol> |
| Component: | Books & Articles | Assignee: | Allan Jude <allanjude> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Robert
2013-12-30 22:50:01 UTC
-N shutdown(2) the network socket after EOF on the input. Some
servers require this to finish their work.
Try: "nc -N machineA 12345 < bar.txt" from your example
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV
Yes, I know, gmail sucks now. If you see this then I forgot. Habits
are hard to break.
On Mon, 30 Dec 2013 16:40:42 -0800, Peter Wemm wrote > -N shutdown(2) the network socket after EOF on the input. > Some servers require this to finish their work. > > Try: "nc -N machineA 12345 < bar.txt" from your example Hi, you're right. It works. Then it should be documented in the example in the man page as nc now belongs to "some servers" that require this to finish their work. Regards, Robert > -- > Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; > KI6FJV Yes, I know, gmail sucks now. If you see this then I forgot. Habits > are hard to break. Responsible Changed From-To: freebsd-amd64->freebsd-docs reclassify. This is a multi-part message in MIME format. The fix has been committed to OpenBSD. http://marc.info/?l=openbsd-cvs&m=139206012706972&w=2 There have been a few other updates to netcat in the mean time, although they are to do with FD passing, which I suspect is an OpenBSD only feature. Hopefully Xin Li or someone else can MFV and pull in the fix for the man page. -- Allan Jude State Changed From-To: open->closed Updated man page (by Allan Jude) merged from vendor (OpenBSD 5.5) to head in r264361 by Xin Li Responsible Changed From-To: freebsd-docs->allanjude Updated man page (by Allan Jude) merged from vendor (OpenBSD 5.5) to head in r264361 by Xin Li Note: this fix was released as part of FreeBSD 10.1 |