[oclug] How can I signal a Linux server to run a script?
Stephen Gregory
oclug at kernelpanic.ca
Wed Jun 18 12:00:22 EDT 2003
On Wed, Jun 18, 2003 at 11:29:39AM -0400, David F. Skoll wrote:
> On Wed, 18 Jun 2003, Hugh Campbell wrote:
>
> > Is there some sort of configurable general purpose daemon program that
> > listens on a TCP port, and then can be configured to run a script when it
> > receives traffic on that port?
>
> Apache? You could run it as a CGI.
If you don't want the hassle of a full, high performance web server
try boa or thttpd (search freshmeat.net). Both support CGI, both have
simple config files. thttpd supports auth, I don't think boa does.
I have looked at a "simple daemon listening on a port" before, and
found that the CGI solution worked farily well. The other option is to
write a daemon in the scripting language of your choice. There are
network daemon sample scripts all over the web.
--
sg
More information about the OCLUG
mailing list