2012/2/21 Amos Kong <[email protected]>

> ----- Original Message -----
> > ----- Original Message -----
> > >
> > >
> > > Hi list,
> > >
> > >
> > > I find the cases need to login with serial need nc with -U support,
> > > is it necessary?
> >
> > Sure, serial stdio is redirected to a unix socket (unix:/tmp/....)
> >                 -U              Use UNIX domain socket
> >
> > > and where can I get this net stat version
>
> http://netcat.sourceforge.net/
>
> you can get code from SF and compile by yourself.
>
>

Thanks

I make a mistake, take netstat as netcast

after I build one netcat, I don't see "nc" command and netcat show me there
is no "-U" support but "-u"

GNU netcat 0.7.1, a rewrite of the famous networking tool.
Basic usages:
connect to somewhere:  ./netcat [options] hostname port [port] ...
listen for inbound:    ./netcat -l -p port [options] [hostname] [port] ...
tunnel to somewhere:   ./netcat -L hostname:port -p port [options]

Mandatory arguments to long options are mandatory for short options too.
Options:
  -c, --close                close connection on EOF from stdin
  -e, --exec=PROGRAM         program to exec after connect
  -g, --gateway=LIST         source-routing hop point[s], up to 8
  -G, --pointer=NUM          source-routing pointer: 4, 8, 12, ...
  -h, --help                 display this help and exit
  -i, --interval=SECS        delay interval for lines sent, ports scanned
  -l, --listen               listen mode, for inbound connects
  -L, --tunnel=ADDRESS:PORT  forward local port to remote address
  -n, --dont-resolve         numeric-only IP addresses, no DNS
  -o, --output=FILE          output hexdump traffic to FILE (implies -x)
  -p, --local-port=NUM       local port number
  -r, --randomize            randomize local and remote ports
  -s, --source=ADDRESS       local source address (ip or hostname)
  -t, --tcp                  TCP mode (default)
  -T, --telnet               answer using TELNET negotiation
  -u, --udp                  UDP mode
  -v, --verbose              verbose (use twice to be more verbose)
  -V, --version              output version information and exit
  -x, --hexdump              hexdump incoming and outgoing traffic
  -w, --wait=SECS            timeout for connects and final net reads
  -z, --zero                 zero-I/O mode (used for scanning)

Remote port number can also be specified as range.  Example: '1-1024'



seebs



> _______________________________________________
> > Autotest mailing list
> > [email protected]
> > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
> >
>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to