On Wed, 2003-01-08 at 10:56, Todd Lyons wrote:
> -----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

Got it ... will try now thanks

> 
> 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


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to