Joshua W. Scott writes:
> OK, so here's the deal: I'm trying to set up netcat to serve up a file,
> let's call it "core", when someone connects to a port, let's say 23.
> The only problem I'm having is getting nc to hang up automatically after
> cat-ing the file to the remote host. Any ideas?

I'd do it with inetd.

telnet  stream  tcp     nowait  nobody  /bin/cat        cat /path/to/core

Discussion on whether this is advisible has been elided ...

-- 
Chip Rosenthal * Unicom Systems Development  http://www.unicom.com/
Has your mail server been spamproofed?       http://maps.vix.com/tsi/
Outlaw junk email * Support CAUCE            http://www.cauce.org/
"Sure it's working, but couldn't you shine it up some?"
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to