Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been looking into Gearman lately and I'm trying to figure out how I can pass a parameter to a Gearman worker that is started on the command line.

E.g. I can start a Gearman worker who's job it is to return the result of an ls -lh:

$ gearman -w -f list -- ls -lh

When the Gearman daemon has started it is now possible to call the list worker function like this:

$ gearman -f list < /dev/null

However, I'm trying to figure out how I can pass a parameter to the list function in the worker.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.