0
機1 - 使用PHP API客戶端Gearman的工人不接收輸入
$client = new \GearmanClient();
$client->addServer(..);
$client->doBackground('demotask', 'hello world');
機2 - 使用PHP API,直接在bash 不 - 工人:
gearman -w -f demotask -- php -f taskexecutor.php
去,TaskExecutor越來越來看,但不包含hello world
預期。
附:對PHP的API和第二臺機器上的永久while循環不感興趣。我想Gearman的開始我的劇本時,它需要
是的,我只是想出一個剛纔它通過標準輸入。 – Alex