one
some text two
three
$ APP_LISTEN=cli.cmd.two ./wrapper -stdin -- grep "some text"
[php p.php]
Service running... cli.cmd.two
cat file.txt | call cli.cmd.two
output
some text two
<?php
$datain = file_get_contents("php://stdin");
$data = json_decode($datain, true);
printf('<h2>%s</h2>'.PHP_EOL, $data['title']);
{
"title" : "some data"
}
$ APP_LISTEN=cli.cmd.one ./wrapper -stdin -- php jsontohtml.php
[php p.php]
Service running... cli.cmd.one
cat file.json | call cli.cmd.one
output
<h2>some data</h2>