-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Todd Lyons wrote on Wed, Jan 08, 2003 at 10:38:57AM -0800 :
> > then /usr/bin/catnet is > > > > #!/bin/sh > > cat /home/james/testthis.html &>/dev/tcp/127.0.0.1/8181 > cat /home/james/testthis.html I was a little off. It works like this if you just telnet to it, but if you connect with a browser, it doesn't display. What happens is the browser connects, sends an http get command, then expects a response. This script sends the response immediately back to it, which the browser is not expecting and ignores. The solution is to make it wait. You can either make it wait until the browser sends a request, or just sleep for a bit. I chose to make it sleep, so mine looks like: #!/bin/sh sleep 1 cat /home/todd/testthis.html Blue skies... Todd - -- | MandrakeSoft USA | Sometimes you get what you want. | | http://www.mandrakesoft.com | Sometimes you get experience. | | http://www.mandrakelinux.com | --unknown origin | Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.20-2mdk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+HHRNlp7v05cW2woRAkw3AJ9i0E1ItpNTI5z1metaSx455b2kQACfRn9e z9aOcxuGbWQL7ifu7ubxlzo= =uRbo -----END PGP SIGNATURE-----
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
