I have a PHP script developed for a freelancer developer. The script is installed in many servers. The script reads emails send to my support email account, and is executed according to the following criteria:
1. The script is executed when a NEW email from the hosting company is detected
2. The subject line is specifically either A or B
3. The email subject line always has an IP
4. 100 emails may arrive simultaneously
5. All emails will have the same, or different IPs in the subject line
6. The script stops or starts an (file) application
7. The application is located in the IP (server)
8. The script creates a log file, for troubleshooting purposes
The project:
I want the same, or new script to be developed in Python. Your job will be rewriting the script, and testing it on your machine (s).
Once you have a bug free version, you will implement it on 4 of my servers. You will open the port needed. You will create a folder to store the script and logs.
You will be given root rights to the servers. Once the script are installed and running bug free, you will explain how it works, and detailed instructions to install it in the remaining servers.
The last PHP version of the script is attached.