protected function tailLocalLogs($path)
{
$path = $this->findNewestLocalLogfile($path);
$output = $this->output;
$lines = $this->option('lines');
(new Process('tail -f -n ' . $lines . ' ' . escapeshellarg($path)))->setTimeout(null)->run(function ($type, $line) use($output) {
$output->write($line);
});
return $path;
}