Got it working .... pretty much.. still some minor errors in the header
files... but... a 1 line web server serving a single page is feasible.
*grin*.... this is getting fun... how small can I go !!!
James
On Wed, 2003-01-08 at 13:26, Jim C wrote:
> Why not create another service to recieve it?
>
> James Sparenberg wrote:
> > OK,,
> > Been hit with a challenge... I've got to get cat to send a file out
> > of a port... K sounds easy...
> >
> > Mods to /etc/xinetd.d
> >
> > created new file called catnet....
> >
> > # default: on
> > service catnet
> > {
> > type = INTERNAL
> > socket_type = stream
> > wait = no
> > user = root
> > server = /usr/bin/catnet
> > port = 8181
> > log_on_failure += USERID
> > disable = no
> > }
> >
> >
> > then /usr/bin/catnet is
> >
> > #!/bin/sh
> > cat /home/james/testthis.html &>/dev/tcp/127.0.0.1/8181
> >
> > I then edited /etc/services and add this line.
> >
> > catnet 8181/tcp
> >
> >
> > I keep getting a
> > Trying 127.0.0.1...
> > telnet: Unable to connect to remote host: Connection refused
> >
> > when I try to connect to this port via telnet
> >
> > IF I just run catnet I get
> >
> > /usr/bin/catnet: connect: Connection refused
> > /usr/bin/catnet: line 2: /dev/tcp/127.0.0.1/8181: Connection refused
> >
> >
> > Can anybody see what I didn't read right in the man pages?
> >
> > I did restart xinetd btw... As near as I can figure I've blown something
> > that should be obvious... Any help?
> >
> > James
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > 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
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com