pycronmail is an app that sends a basic system status mail to registered emails.
- This app consists of two programs
pycronmaila bash file andpyssmail.pya python file that collects system status and send it to the receiver email.
- It is a basic CLI program for the app.
- It provides the basic interface for the user.
- It supports linux-debian environment.
- It has commands:
install,set_config,add_receiver.start,stop,destroy installto the CLI as a command parameter it installs the app in the current user environment.set_configsets the sender email credentials.add_receiveradd receiver email who will receive system status.startsets the cronjobstopunsets the cronjobdestroycleans up the installation |--alloption for everything
- The purpose of the
pyssmail.pyprogram is to collect the system information, status and send it to the user through the use of email. - This program works if there is a python installed on the environment.
After you have this repository on your disk, guide your terminal to this directory:
$ cd pycronmailInstall the app through the pycronmail bash script:
pycronmail$ chmod +x pycronmail
pycronmail$ ./pycronmail install
pycronmail$ # or if you have python, python-psutil already installed
pycronmail$ ./pycronmail install --no-package-change After the successful installation the pyssmail.py program will be set in the crontab.
To add receiver:
$ pycronmail add_receiverTo set sender credentials:
$ pycronmail set_configTo stop the cron-job:
$ pycronmail stopTo start the cron-job:
$ pycronmail startTo destroy the installation:
$ pycronmail destroy
or
$ pycronmail destroy --allFor the test purpose the cronjob will run the pyssmail.py program every minute!