Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.