Results 1 to 5 of 5

Thread: How to setup cronjob?

  1. #1

    Default How to setup cronjob?

    I got this email today:
    Code:
    /bin/sh: line 1: /usr/bin/wget: Permission denied
    Any ideas?

  2. #2

    Default

    got the same thing again


    Anyone?

  3. #3
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default How to setup cronjob?

    There are 2 methods to run cronjob.php
    The first one iscommand line)
    Code:
    wget -O /dev/null http://www.yoursite.com/aihs/cronjob.php
    Replace the yoursite.com to your own domain.

    Or you can use the below one(command line):
    Code:
    /usr/local/bin/php -q /home/yabsoft/public_html/yabsoft/cron.php
    The "/usr/local/bin/php" is the php interpreter,if you don't know it,please inquery your host company.Generally, it is "/usr/local/bin/php" or "/usr/bin/php".

    "/home/yabsoft/public_html/yabsoft/cron.php" should be full path to the script.if you got a "can't open file" error in email,that denote your path is not the full path to the script.

  4. #4

    Default

    What do this cronjob?

    Do we have to set this upo on the v2.1?

  5. #5
    Join Date
    May 2005
    Location
    China & France
    Posts
    6,492

    Default

    The cronjob is optional.
    If you want to delete images periodiclly,for example,if you want to delete images which is not viewed in past 30 days,you can setup cronjob to delete automaticlly.

    Also,you can run http://domain.com/cronjob.php directly to delete them.

Posting Permissions

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