You are not logged in.
#1 2008-05-23 09:27:20
- Sep
- Member
generate.php
Anyone know how to modify the generate.php if i dont want update everytime all images just the new ones
and which code/link do i have to put in the cron line ?
http://domain/gallery/tools/generate.php a [php] infront ?
Regards,
Sep
Last edited by Sep (2008-05-23 09:29:53)
Offline
#2 2008-05-26 12:11:32
- Sep
- Member
Re: generate.php
wteg -q -O /dev/null http://domain.xx/tools/generate.php
root http://domain.xx/tools/generate.php
php http://domain.xx/tools/generate.php
plz guys tell me which command line i need for my cron job
Offline
#3 2008-05-26 21:58:36
- pavian
- Moderator

Re: generate.php
If you run your cron-job from a remote machine you should put this line in your /etc/crontab
Code:
0 0 * * * wget http://http://domain.xx/tools/generate.php >/dev/null 2>&1
Make sure wget is installed! Also check if your cron requires a user to be put in this line, you can check by using man crontab or man cron
You can try if it works by running the cron command in the command line first.
On your local machine it should be like
Code:
0 0 * * * php /pathto/htdocs/tools/generate.php >/dev/null 2>&1
Offline
#4 2008-05-27 09:49:31
- Sep
- Member
Re: generate.php
big thank u
Code:
0 0 * * * php /srv/www/vhosts/domain.xx/subdomains/name/httpdocs/tools/generate.php >/dev/null 2>&1
this cron runs now every day @ 24:00 right ?
i tryed to fix it to 05:20 in the morning cause the screens get every day uploaded @ 05:00 but it dont works i believe is it wrong ?
Code:
20 5 * * * php /srv/www/vhosts/domain.xx/subdomains/name/httpdocs/tools/generate.php >/dev/null 2>&1
Offline
#5 2008-05-28 23:26:49
- pavian
- Moderator

Re: generate.php
Actually it appears correct to me?
Few things to check:
* time on server correct?
* Does running
Code:
php /srv/www/vhosts/domain.xx/subdomains/name/httpdocs/tools/generate.php >/dev/null 2>&1
from the commandline work?
* Are you inserting in the right crontab?
Offline