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

Reply via email to