Python code is written to perform below 3 functionalities:
- Execute shell command and get the output and error.
- Logging of all steps
- Archiving of logs
Language used is Python. There are no dependencies.
There are 3 inputs required from user before executing the code:
- Email Id
- Log path
- Archive Log path
Make sure to provide correct path for log, archive log and email_id in python file before executing it.
Simply import required funtions in your Python script and execute it.