Quote:
Originally Posted by santhoshvkumar
I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achive this scenario.
|
I'm pretty sure you can't do this but, even if you could, it would kill performance.
Normal approach would be to write data to a table with a timestamp then the shell script would look for data in the table that had arrived after it last ran. Improvements to this might include:
- Not updating the time if there's any errors.
- The time it last ran can be stored as a heartbeat which also shows you the process is running.
- Sending an email to a support group if there's any errors.
- Having a maximum amount of data it can process at any one go to avoid locking etc.
- Altering how often it polls the table depending on how much data it finds.
- Removing the triggers and then accessing the data direct.