Skip Menu |

This queue is for tickets about the Net-Netcat CPAN distribution.

Report information
The Basics
Id: 82357
Status: open
Priority: 0/
Queue: Net-Netcat

People
Owner: girish1729 [...] yahoo.com
Requestors: ANDK [...] cpan.org
CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



Subject: Test hangs on my Debian
I'm no expert in nc. The manpage is thin and there is no --version option, so I don't know what to recommend. I can show you the output with -h. The version of nc on my Debian is waiting for a command when you call it without an argument. It just sits there, waiting forever. See for yourself the three commands below. I interrupted the forst one with ^C. $ nc Cmd line: ^C $ nc < /dev/null Cmd line: wrong $ nc -h [v1.10-40] connect to somewhere: nc [-options] hostname port[s] [ports] ... listen for inbound: nc -l -p port [-options] [hostname] [port] options: -c shell commands as `-e'; use /bin/sh to exec [dangerous!!] -e filename program to exec after connect [dangerous!!] -b allow broadcasts -g gateway source-routing hop point[s], up to 8 -G num source-routing pointer: 4, 8, 12, ... -h this cruft -i secs delay interval for lines sent, ports scanned -k set keepalive option on socket -l listen mode, for inbound connects -n numeric-only IP addresses, no DNS -o file hex dump of traffic -p port local port number -r randomize local and remote ports -q secs quit after EOF on stdin and delay of secs -s addr local source address -T tos set Type Of Service -t answer TELNET negotiation -u UDP mode -v verbose [use twice to be more verbose] -w secs timeout for connects and final net reads -z zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive]; hyphens in port names must be backslash escaped (e.g. 'ftp\-data'). HTH&&Thanks,
Subject: Re: [rt.cpan.org #82357] Test hangs on my Debian
Date: Tue, 1 Jan 2013 17:50:53 -0800 (PST)
To: "bug-Net-Netcat [...] rt.cpan.org" <bug-Net-Netcat [...] rt.cpan.org>
From: Girish Venkatachalam <girish1729 [...] yahoo.com>
This is not my mail address. It is girish@gayatri-hitech.com I wonder why CPAN has not updated. I will look into it. -Girish Show quoted text
________________________________ From: Andreas Koenig via RT <bug-Net-Netcat@rt.cpan.org> To: Sent: Tuesday, January 1, 2013 5:06 PM Subject: [rt.cpan.org #82357] Test hangs on my Debian Tue Jan 01 06:36:50 2013: Request 82357 was acted upon. Transaction: Ticket created by ANDK       Queue: Net-Netcat     Subject: Test hangs on my Debian   Broken in: 0.05     Severity: Normal       Owner: Nobody   Requestors: ANDK@cpan.org       Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=82357 > I'm no expert in nc. The manpage is thin and there is no --version option, so I don't know what to recommend. I can show you the output with -h. The version of nc on my Debian is waiting for a command when you call it without an argument. It just sits there, waiting forever. See for yourself the three commands below. I interrupted the forst one with ^C. $ nc Cmd line: ^C $ nc < /dev/null Cmd line: wrong $ nc -h [v1.10-40] connect to somewhere:  nc [-options] hostname port[s] [ports] ... listen for inbound:    nc -l -p port [-options] [hostname] [port] options:         -c shell commands      as `-e'; use /bin/sh to exec [dangerous!!]         -e filename            program to exec after connect [dangerous!!]         -b                      allow broadcasts         -g gateway              source-routing hop point[s], up to 8         -G num                  source-routing pointer: 4, 8, 12, ...         -h                      this cruft         -i secs                delay interval for lines sent, ports scanned         -k                      set keepalive option on socket         -l                      listen mode, for inbound connects         -n                      numeric-only IP addresses, no DNS         -o file                hex dump of traffic         -p port                local port number         -r                      randomize local and remote ports         -q secs                quit after EOF on stdin and delay of secs         -s addr                local source address         -T tos                  set Type Of Service         -t                      answer TELNET negotiation         -u                      UDP mode         -v                      verbose [use twice to be more verbose]         -w secs                timeout for connects and final net reads         -z                      zero-I/O mode [used for scanning] port numbers can be individual or ranges: lo-hi [inclusive]; hyphens in port names must be backslash escaped (e.g. 'ftp\-data'). HTH&&Thanks,
I developed and tested on OpenBSD. I have a Debian box. I will run the test there and update the module. I will repond within 4 days. If not please ping me again. Thanks. -Girish
Tests wait for "enter" for me. t/00-load.t ....... 1/? # Testing Net::Netcat (I press "enter" here) no destination t/00-load.t ....... ok t/01-coderef.t .... 1/2 (I press "enter" here) no destination t/01-coderef.t .... ok t/boilerplate.t ... ok t/pod-coverage.t .. ok t/pod.t ........... ok -- Alexandr Ciornii, http://chorny.net