|
A C# program (ConsoleApplication1) running via mono on debian "sees" the existence of the "flag.txt" file and proceeds to open it.
Normally the file contains "bluetooth" which then triggers ConsoleApplication1 to execute a bash shell script called "getCallerID
getCallerID executes a "wget" to retrieve via Ruby/Rest running on Amazon Ec2 the caller ID info. The file returned ("index.html") is parsed by ConsoleApplication
If the "On" telephone number was called then a "on.txt" file is written to the shared drive
If the "Off" telephone number was called then a "off.txt" file is written to the shared drive
|