[oclug] How can I signal a Linux server to run a script?
Hugh Campbell
hdc at fs.ca
Wed Jun 18 09:42:14 EDT 2003
On 18 Jun 2003 12:01:39 -0400, Greg Franks wrote:
>>>>>> "Hugh" == Hugh Campbell <hdc at fs.ca> writes:
>
> Hugh> Is there some sort of configurable general purpose daemon
> Hugh> program that listens on a TCP port, and then can be
>Why not write a program that listens on a TCP port and runs something
>when it gets a message.
>
>main() {
> bind()
> while ( accept() ) {
> system( "shell script" );
> }
>}
>
Well, one excellent reason I have for not doing the above is that I didn't have a
clue how to.
Now I have at least a clue, though still not sure where I would go with the above.
I really wouldn't know C code if I dropped it on my toe. :)
Hugh
More information about the OCLUG
mailing list