I need portable source code that can compile on VC C++ and gcc on Linux with the following functionality:
- Windows service application or Linux daemon (depending on which OS the compiling is done)
- time Scheduler that executes certain actions at a predefined time interval (for ex. every 10 minutes)
- the actions must include: open a particular file, connect and retrieve an OID value from an SNMP server, connect to a server via HTTPS and send a HTTP POST request
- write a log file detailing the result/status of the actions above
The code should? use OS independent libraries such as Openssl, curl, openSNMP.