Run a script on an incomming call

Hi everyone,

How can I trigger/run a script (python, php or any other kind of script) on an incoming call.

I would like to pass the caller ID information to the script.

Thanks for your help,
-Ramin