Adding a script to autoload
After writing the above code, it's time to add this Python script to run. This can be done in Ubuntu as follows:
sudo chmod + x reminder.py , where reminder.py is our script file name
sudo cp /path/to/our/reminder.py / usr / bin
This will add our executable script to / usr / bin.
NOTE . The script runs automatically (after being added to startup) every time the system starts. Also, if you have more than two birthdays on the same day, both notifications will be notified in a notification.
What the birthday file should look like p >
Output after script run
This article is provided by Omkar Pathak . If you are as Python.Engineering and would like to contribute, you can also write an article using contribute.python.engineering or by posting the article [email protected] ... See my article appearing on the Python.Engineering homepage and help other geeks.
Please post comments if you find anything wrong or if you would like to share more information on the topic discussed above.