#!/usr/bin/perl # Filename: run_album.cgi # Author: David Ljung Madison # See License: http://MarginalHacks.com/License/ # Description: CGI script that can regenerate albums use strict; # You might need to set $ENV{HOME} in this.. my $ALBUM_BIN = "/usr/local/bin/album"; my $ALBUM_DIR = "/home/httpd/some/path/to/Photos"; my $ALBUM_URL = "http://SomeDomain.com/path/to/Photos"; # Redirect my $what = "html"; # So people can read the script at my website print < Building a new album

Patience...



I'm building a new album right now - please wait a few moments for the build to complete

Please do not reload this page multiple times! END system("nohup $ALBUM_BIN $ALBUM_DIR > /dev/null &");