Skip to content

n-eq/capitals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages