Código:
nc -h for help<-me devuelve eso!!!terminal A$ nc -l -p 2000 -e /bin/date nc -h for help
y tanto en arch como en mac NO se encuentra -e entre las opciones!!
Código:
En cambio en Ubuntu baje el deb desde acá]$ nc -h for help
[v1.10]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-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
-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
-s addr local source address
-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]
http://cl.archive.ubuntu.com/ubuntu/...0.5-1_i386.deb
A) Servidor: queda esperando conexiones entrantes(-l) por el puerto(-p) 2000 y ejecuta el comando(-e) /bin/date luego de conectar.
Código:
B) Cliente: se conecta al servidor por el puerto 2000 y recibe de vuelta la fecha.terminal A$ nc -l -p 2000 -e /bin/date
Código:
Por que me funciona solo en Ubuntu, que opción tengo que activar para que no me salga "nc -h for help" en arch y en mac con fink????????terminal B$ nc localhost 2000 vie ene 19 06:02:12 CLST 2007
Gracias de antemano. Saludos.


