protected function tailRemoteLogs($path, $connection)
{
$out = $this->output;
$lines = $this->option('lines');
$this->getRemote($connection)->run('cd ' . escapeshellarg($path) . ' && tail -f $(ls -t | head -n 1) -n ' . $lines, function ($line) use($out) {
$out->write($line);
});
}