UTIL.PHP in crontab UTIL.PHP in crontab
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

UTIL.PHP in crontab

Started by wbeddoe, January 22, 2014, 04:30:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wbeddoe

Is there a way to schedule the updating of thumbs and images via cron job instead of via admin interface? If so, what would the command line look like to hit all galleries/images?

Oftentimes users will see no image on the detail page but when they click on the default database tin can image, they will get the full-size image.

Coppermine 1.5.22

Thank you.
Coppermine Photo Gallery 1.5.22 (stable)
IT Exec; BS Psychology; #USMC

Αndré

Usually there's no need to run the admin tools periodically. If your files disappear for some reason, you should find the reason and it's probably not Coppermine. Previously you should upgrade to the latest stable release, currently cpg1.5.26.

To answer your question: it should be possible to run util.php via a cron job, but you'd need to create a custom script which authenticates itself as admin user and submit the correct form values. Depending on the size of your gallery and your PHP settings you probably will run into maximum execution time issues, so I assume it would be easier to create a custom shell script that updates your images via ImageMagick (of course you need to hard-code your current Coppermine picture settings and imitate its behavior to get correct results).

wbeddoe

Got it; thanks for the response Αndré
Coppermine Photo Gallery 1.5.22 (stable)
IT Exec; BS Psychology; #USMC