On Wed, 2003-01-08 at 03:16, J. Grant wrote:
> Hi James,
>
> Just out of interest, when you do this
> cat /home/james/testthis.html &>/dev/tcp/127.0.0.1/8181
>
I got this from a how to on the net.... Don't know if it's needed And
I've tried it without. But still get the connection error.
> is it necessary to specify the outgoing connection? As for me it looks
> like it is an endless loop. Does xinetd set the stdin and stdout to
> automatically redirect fromt he program/script?
>
> regards
>
> JG
>
> 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