Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 772 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 772 Bytes

capitals

Capitals is a small Bash project created in order to add some entertainment while working on the terminal, by learning some capitals of the world.

Example:

alt tag

The countries and their respective capital are stored in the file capitals.txt. The gathered information is fetched, when available, from the website http://sciencekids.co.nz/sciencefacts/countries/

Cron

In order to enable this program to run periodically, you need to 'cron' it.

First, you have to give it execution permission: chmod a+x capitals.sh.

Then, if for example, you want it to run every two hours, you need to add this line to your crontab list (crontab -e):

0 */2 * * * ~/path/to/capitals.sh