gearman.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. =========================
  2. Gearman Command Line Tool
  3. =========================
  4. Command line client for Gearmand
  5. --------
  6. SYNOPSIS
  7. --------
  8. .. program:: gearman
  9. **Common options**
  10. .. option:: -f <function>
  11. Function name to use for jobs (can give many)
  12. .. option:: -h <host>
  13. Job server host
  14. .. option:: -H
  15. Print this help menu
  16. .. option:: -p <port>
  17. Gearman server port
  18. .. option:: -t <timeout>
  19. Timeout in milliseconds
  20. .. option:: -i <pidfile>
  21. Create a pidfile for the process
  22. .. option:: -n
  23. In client mode run one job per line, in worker mode send data packet for each line
  24. .. option:: -N
  25. Same as -n, but strip off the newline
  26. **Client options**
  27. .. option:: -b
  28. Run jobs in the background
  29. .. option:: -I
  30. Run jobs as high priority
  31. .. option:: -L
  32. Run jobs as low priority
  33. .. option:: -P
  34. Prefix all output lines with functions names
  35. .. option:: -s
  36. Send job without reading from standard input
  37. .. option:: -u <unique>
  38. Unique key to use for job
  39. *Worker options**
  40. .. option:: -c <count>
  41. Number of jobs for worker to run before exiting
  42. .. option:: -w
  43. Run in worker mode
  44. -----------
  45. DESCRIPTION
  46. -----------
  47. With gearman you can run client and worker functions from the command line.
  48. 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.
  49. ----
  50. HOME
  51. ----
  52. To find out more information please check:
  53. `http://gearman.info/ <http://gearman.info/>`_
  54. --------
  55. SEE ALSO
  56. --------
  57. :manpage:`gearmand(8)` :manpage:`libgearman(3)`