• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

3. The TiVo Shell > 44. Running the Same Thing Over and Over...

Running the Same Thing Over and Over...

Use cron, the Unix scheduling service, to run a hack at particular times of the day, week, month, or year.

If sending TiVo email [Hack #57] isn’t enough to remind you to walk your dog, or if you just want to run the same hack at regular intervals, then cron, the Unix scheduling service, is all you need.

Grab yourself a copy of cron (ftp://ftp.dtype.org/pub/tivo/dtype/cron-3.0pl1_TiVo-2.tar.gz), which M. Drew Streib has compiled.

Set up a directory structure to house the cron binary and sample crontab file—the actual list of scheduled events:

bash-2.02# mkdir /var/hack/etc
bash-2.02# mkdir /var/hack/etc/cron.d
bash-2.02# mkdir/var/hack/cron

Move both files over to your TiVo [Hack #36], dropping cron into /var/hack/bin and crontab into /var/hack/etc. Make cron executable:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint