Here's how you might use it to post a random quote-of-the-day automatically. You will need the UNIX program 'fortune' installed.
Create a file: ~/thortune:
PATH=/usr/bin:/usr/games:$PATH fortune | python /path/to/thimbl.py stdin
Set its executable permissions:
chmod a+x ~/thortune
Edit your crontab file to include the line:
@daily $HOME/thortuneThat should be it!
No comments:
Post a Comment