NAME

worker.pl - Start one or all GJS workers

SYNOPSIS

# Run 1 instance of the "NinetyNineBottlesOfBeer" Gearman function
worker.pl NinetyNineBottlesOfBeer

or:

# Run 1 instance of the Gearman function from "path/to/NinetyNineBottlesOfBeer.pm"
worker.pl path/to/NinetyNineBottlesOfBeer.pm

or:

# Run 1 instance of each Gearman function from "path_to/dir_with/gearman_functions/"
worker.pl path_to/dir_with/gearman_functions/

or:

# Run 4 instances of the "NinetyNineBottlesOfBeer" Gearman function
worker.pl NinetyNineBottlesOfBeer 4

or:

# Run 8 instances of the Gearman function from "path/to/NinetyNineBottlesOfBeer.pm"
worker.pl path/to/NinetyNineBottlesOfBeer.pm 8

or:

# Run 2 instances of each Gearman function from "path_to/dir_with/gearman_functions/"
worker.pl path_to/dir_with/gearman_functions/ 2