using nc to simulate a service

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Buettner
Date:  
Subject: using nc to simulate a service
On Aug 11, 10:18pm, Mike Starke wrote:

> I am trying to set up Hylafax to serve up polled documents.
> Problem is, all my research indicates Hylafax does not support this feature.
>
> So, now I have two problems:
> 1. Hylafax' lack of support
> 2. Cox' filtering of incoming ports.
>
> So, what I think I need is to run netcat (nc) to listen
> on some oscure port. What I would like to do is this:
>
> If I was to 'telnet myfaxserver <obscure_port> parameter'
>
> Once it hits the port, it will run a perl script and
> pass it the parameter.


Why bother with netcat? Instead, just make your perl script listen on
the port directly...

Kevin