Results 1 to 15 of 47

Thread: xPlusz command explanations

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Dec 2001
    Posts
    204
    Via the crontab file. In most Unix platforms it is a file for each user. On Tivo it is one specific file. Also the Tivo runs in GMT (meaning adjust for your timezone)

    /var/hack/etc/crontab

    In this file are a set of chars on one line denoting when to run something, followed by what to run. Like most Unix scripts a # denoted a comment.

    So add this into your crontab file.

    Code:
    #              field          allowed values
    #              -----          --------------
    #              minute         0-59 (*/5 every 5 minutes)
    #              hour           0-23 (1-5 hours 1 through 5)
    #              day of month   1-31
    #              month          1-12 (or names)
    #              day of week    0-7 (0 or 7 is Sun, or use names)
    #
    1  *  *  *  *           touch /tmp/crontest
    The last line of course will really do something (it will change the date stamp on the /tmp/crontest file).

    The comments are made to remind you what each of those fields preceding the command mean.

    1 * * * * means run it every 1 minuite past the hout (1:01, 2:01, 3:01, etc)
    0/5 * * * * means run it every 5 minutes

    NEVER USE
    * 5 * * * it means run it infinatly during the 5 AM hour (5:00.000, 5:00.001, 5:00.002 ,etc)
    You can see why that would be bad for a system, what you would probably mean is

    0 5 * * * meaning run it at 5AM every day
    0 8 * * * meaning run it at 8AM every day
    0 13 * * * meaning run it at 1PM every day
    30 14 * * * meaning run it at 2:30PM every day
    1 23 * * * meaning run it at 11:01PM every day
    1 23 * * Sun meaning run it every Sunday at 11:01PM
    1 23 * * 6,7 is every Saturday and Sunday at 11:23PM

    From this I hope you can figure what the rest of the fields mean
    Last edited by Torg; 04-26-2003 at 04:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •