Skip to content

orjanv/hiddenhaikus

Repository files navigation

booktoemail

booktoemail.sh is a bash utility to download the ascii version of a book and find haikus in it using the haikufinder program and NLTK toolkit. The script takes two arguments:

$ ./booktoemail.sh http://www.gutenberg.org/files/2591/2591.txt user@host.com

booktoblog

booktoblog is a bash utility like that blogs the haikus found to a blogger blog using the googlecl tool. It also uses the findhaikus utility as the booktoemail.sh script does. The script takes one argument:

$ booktoblog.sh samplenumbers.txt

Crontab

Make your script run daily with crontab

$ crontab -e

Add a line as follows

# 
# m h  dom mon dow   command
0 7 * * * cd /path/to/your/script; ./booktoblog.sh samplenumbers.txt

Releases

No releases published

Packages

No packages published