View Full Version : How to setup cronjob?
I got this email today:
/bin/sh: line 1: /usr/bin/wget: Permission denied
Any ideas? :(
got the same thing again :(
Anyone? :|
yabsoft
11-16-2005, 03:04 PM
There are 2 methods to run cronjob.php
The first one is:(command line)
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):
/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.
blogmaster2003
03-26-2006, 12:28 AM
What do this cronjob?
Do we have to set this upo on the v2.1?
yabsoft
03-26-2006, 02:21 AM
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.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.