Gearman Command Line Tool

Command line client for Gearmand


Common options

-f <function>

Function name to use for jobs (can give many)

-h <host>

Job server host


Print this help menu

-p <port>

Gearman server port

-t <timeout>

Timeout in milliseconds

-i <pidfile>

Create a pidfile for the process


In client mode run one job per line, in worker mode send data packet for each line


Same as -n, but strip off the newline

Client options


Run jobs in the background


Run jobs as high priority


Run jobs as low priority


Prefix all output lines with functions names


Send job without reading from standard input

-u <unique>

Unique key to use for job

Worker options*

-c <count>

Number of jobs for worker to run before exiting


Run in worker mode


With gearman you can run client and worker functions from the command line.

The environmental variable GEARMAN_SERVER can be used to specify multiple gearmand servers. Please see the c:func:’gearman_client_add_servers’ for an explanation of the required syntax.


To find out more information please check:


gearmand(8) libgearman(3)