Running command when word appears in log?
I have been would like to know if there is any way for me to scan a text file and then run a command. I have tried grep getting no where. I have also tried the find . thing, it sounds promising but I can't seem to get a good explanation on how to use it. If you would like to know what this will be used for here is an explanation: I have an iPhone app that sends a word over http, the server side application is listening for the command and when received it runs a command.
Running command when word appears in log?
===

I have been would like to know if there is any way for me to scan a text file and then run a command. I have tried grep getting no where. I have also tried the find . thing, it sounds promising but I can't seem to get a good explanation on how to use it. If you would like to know what this will be used for here is an explanation: I have an iPhone app that sends a word over http, the server side application is listening for the command and when received it runs a command.