Cronjob problem

Discussion in 'Installation/Configuration' started by admins, Dec 2, 2009.

  1. admins

    admins Member

    Hi all
    System: Debian 5
    ISPC: 3.0.1.6

    Problem: If I add a cronjob for a site with 5 * * * * /var/www/site/bin/test.sh

    It doesn't do this job every 5 minutes. I don't know why.
    Where could I find the log for adding this here?
    Has anyone a idea why it does not work?

    thanks
    admins
     
  2. damir

    damir New Member

    I have a cron that runs every 5 minutes and it looks like this:

    */5 * * * * /path/to/the/script
     
  3. Mark_NL

    Mark_NL Member

    From the man page:

    Code:
    Step values can be used in conjunction with ranges.  Following a range 
    with "/<number>" specifies skips of the number's value through the
    range.  For example, "0-23/2" can be used in the hours field to specify
    command execution every other hour (the alternative in the V7 standard is
    "0,2,4,6,8,10,12,14,16,18,20,22").  Steps are also permitted after an
    asterisk, so if you want to say "every two hours", just use "*/2".
     
  4. falko

    falko Super Moderator Howtoforge Staff

Share This Page