-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yo Eric!
On Mon, 12 Sep 2005, [EMAIL PROTECTED] wrote:
> What if I am otherhost? Is there a facility for something like
> [EMAIL PROTECTED] cat /dev/tcp/me/listen/5000 > yesterhost-hda.img
Well, I can do it with just nc on the sending side. Takes a bit of work.
Only works with udp and if there is any possibility of packet loss there
will be the obvious issues..
You need two 2 sessions on the receiving host. One on the sending
host.
First, start the listening client:
host1-screen1# cat - < /dev/udp/host2/5001
Find out what the originating port is:
host1-screen2# # netstat -n | fgrep 5001
udp 0 0 [host1]:36285 [host2]:5001 ESTABLISHED
36285 is the port we want. Now plug that in to sending nc:
host2-screen1# ls -l | nc host1 36285 -u -p 5001
Viola! The output of "ls -l" now appears on host1-screen1!
Prolly not what the bash maintainers had in mind, but it does work. YMMV.
RGDS
GARY
- ---------------------------------------------------------------------------
Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701
[EMAIL PROTECTED] Tel:+1(541)382-8588 Fax: +1(541)382-8676
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDJom18KZibdeR3qURAvFYAJ0cMbCw9LGchzSzOqpD1rNB3zerEACgq+eL
5Y6xP/UJmgK28ckA8u90qdY=
=9Iw1
-----END PGP SIGNATURE-----
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/