1
0
mirror of https://github.com/danog/process.git synced 2024-12-12 09:09:44 +01:00
process/test/bin/worker.php

17 lines
217 B
PHP
Raw Normal View History

<?php
$content = fread(STDIN, 1024);
2017-12-10 22:17:04 +01:00
$command = explode(" ", $content);
if (count($command) !== 2) {
exit(1);
}
2017-12-14 03:33:28 +01:00
if ($command[0] === "exit") {
2017-12-10 22:17:04 +01:00
echo str_repeat(".", (int) $command[1]);
exit;
}
exit(1);