I've seen the xargs method of passing arguments into gearman, but how do I just get my script to take STDIN as the input for my gearman worker instead?
The use case here is that I have a bunch of IDs that I'd like to simply fire off as this.
gearman -f job 123456
gearman -f job 123457
gearman -f job 123458
gearman -f job 123459
gearman -f job 123460
If I could do that, then iterating over a list of id numbers would be really easy.