The simplest way to maintain a queue of jobs is in an RDBMS such as Postgres or mysql. To run the jobs you need a simple daemon on each server - see for example Net::Daemon. To communicate between cgi and the database, perhaps DBI
-M
Free your mind
Comment on Re: Perl/CGI Job Scheduling/Queue Web Site on Apache/Windows