1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 20:24:43 +01:00
process/test/bin/worker.php
2018-10-14 23:16:09 -05:00

17 lines
221 B
PHP

<?php
$content = \fread(STDIN, 1024);
$command = \explode(" ", $content);
if (\count($command) !== 2) {
exit(1);
}
if ($command[0] === "exit") {
echo \str_repeat(".", (int) $command[1]);
exit;
}
exit(1);