Todd Lyons wrote:
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
Hey Todd? What is it about your message (including the gpg sig) that causes Mozilla to crash every time I attempt to open one of your messages? I can open other signed message no problem but yours consistantly cause Mozilla no end of heartache!

Mark


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

Reply via email to