Query: arch::runlimit
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Arch::RunLimit(3pm) User Contributed Perl Documentation Arch::RunLimit(3pm)NAMEArch::RunLimit - class to enforce a limit on the number of running processesSYNOPSISuse Arch::RunLimit my $limit = Arch::RunLimit->new(file => $limit_file); die "run-limit exceeded" if $limit->exceeded;DESCRIPTIONArch::RunLimit provides an easy way to enforce a limit on the number of concurrently running processes.METHODSThe following methods are available: new, exceeded. new %opts Create a new Arch::RunLimit object with the specified options: file (mandatory) The file used to keep track of the number of processes. limit The maximum number of concurrently running processes. Defaults to 5. timeout The timeout after which a process is assumed to be terminated in seconds. Defaults to 1800 (30 minutes). exceeded Return 1 if the number of concurrently running processes has been exceeded, 0 otherwise.BUGSAwaiting your reports.AUTHORSMikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel). perl v5.10.1 2005-06-21 Arch::RunLimit(3pm)